mam catchup adds lots of duplicates into history
Please first check if another issue has been opened for your problem
Versions
- OS: Debian GNU/Linux
- Gajim version: 0.99.2 (nightly, maximum 3 days old)
- GTK+ Version: 3.22.11
- PyGObject-Version: 3.22.0
- python-nbxmpp Version: 0.6.3
Server supports mam versions on own bare jid:
<feature var='urn:xmpp:mam:0'/>
<feature var='urn:xmpp:mam:1'/>
<feature var='urn:xmpp:mam:2'/>
and this on server host:
<feature var='urn:xmpp:mam:0'/>
Mam queries are done using mam:2 (confirmed by using xml console)
Steps to reproduce the problem
- Log in, chat a while
- Log out (leave the chat window open)
- Log in again
Expected behavior
Only messages written in the time between step 2 and 3 are added to the open chat window
Actual behavior
All messages since last message catchup (read: since step 1) are added to the chat window, showing lots of dupliates. Even the history window contains these duplicates.
Another small bug: The green checkmarks of XEP-0184 are added to the last message in the chat window, even if the message has a delay tag and is sorted in somewhere above the last message.