Duplicate messages received in MUC private messages synced with MAM
Versions
- OS: Void Linux
- Gajim version: 1.8.0
- GTK version: 3.24.38
- Python-nbxmpp version: 4.3.0
Steps to reproduce the problem
- Join a public channel with a client other than Gajim
- Close Gajim
- Someone sends you a private message
- Open Gajim
- Open the corresponding PM conversation
Expected behavior
I see the PM history as it is.
Actual behavior
Each private message received from the person I spoke with, is displayed twice or more. My own messages are displayed only once.
Here's the what happens on the XML console:
<!-- Incoming Thu 05 Oct 2023 04:18:04 PM CET (lissine@jabbers.one) -->
<message xmlns="jabber:client" to="lissine@jabbers.one/gajim.XB8U44PB">
<result queryid="1be2a51c-b44e-4b33-9bc8-d1277314a62e" id="2023-10-05-f08621e678e41465" xmlns="urn:xmpp:mam:2">
<forwarded xmlns="urn:xmpp:forward:0">
<delay stamp="2023-10-05T15:17:40Z" xmlns="urn:xmpp:delay" />
<message to="lissine@jabbers.one/Conversations Self-built.0fsZ" id="b0cf05cf-79a9-46a5-a893-e5f586d5a028" xmlns="jabber:client" type="chat" from="slidge@conference.nicoco.fr/lissine" xml:lang="en">
<body>Did you get my message?</body>
<request xmlns="urn:xmpp:receipts" />
<origin-id xmlns="urn:xmpp:sid:0" id="b0cf05cf-79a9-46a5-a893-e5f586d5a028" />
<x xmlns="http://jabber.org/protocol/muc#user" />
<occupant-id xmlns="urn:xmpp:occupant-id:0" id="2bdSV81eaMmWYmRXHUKRX1ZTLZooKxraYMGAgWzlqbw=" />
</message>
</forwarded>
</result>
</message>
<!-- Incoming Thu 05 Oct 2023 04:18:04 PM CET (lissine@jabbers.one) -->
<message xmlns="jabber:client" to="lissine@jabbers.one/gajim.XB8U44PB">
<result queryid="1be2a51c-b44e-4b33-9bc8-d1277314a62e" id="2023-10-05-b8c5715d6c0cce82" xmlns="urn:xmpp:mam:2">
<forwarded xmlns="urn:xmpp:forward:0">
<delay stamp="2023-10-05T15:17:40Z" xmlns="urn:xmpp:delay" />
<message to="slidge@conference.nicoco.fr/lissine" xmlns="jabber:client" type="chat" from="lissine@jabbers.one/Conversations Self-built.0fsZ" xml:lang="en">
<received xmlns="urn:xmpp:receipts" id="b0cf05cf-79a9-46a5-a893-e5f586d5a028" />
<store xmlns="urn:xmpp:hints" />
</message>
</forwarded>
</result>
</message>
As far as I can tell, the message was received only once. So this is probably a problem in Gajim's processing.