Opened at 2016-01-16T18:09:30Z
Last modified at 2016-01-17T17:14:47Z
#1244 new enhancement
Jabber: only fetch room history since last received message
Reported by: | cbay | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Jabber | Version: | 3.4.1 |
Keywords: | history | Cc: | |
IRC client+version: | Client-independent | Operating System: | Linux |
OS version/distro: | Linux Arch |
Description
When joining a MUC, BitlBee receives all messages from history from the server, which can typically be rather large (on my server, the last 200 messages are stored/sent). It pollutes my channel history, as messages are typically stored multiple times, rather than only once.
When joining a MUC, the client can ask the server to only send messages since a specific date: http://xmpp.org/extensions/xep-0045.html#enter-managehistory
Other XMPP clients typically ask the server to send messages since the last message they've received on this MUC.
I was willing to (try to) implement this feature on BitlBee, but I don't know where/how to store the date of the last received message on a MUC. Any suggestion?
Attachments (1)
Change History (2)
Changed at 2016-01-17T17:14:15Z by
Attachment: | history-since-last-message_3.4.1.patch added |
---|
Here is a proof-of-concept patch, on top of 3.4.1. It works for me, although it's rather ugly (the last received message date is stored in a per-room file).