Sometimes Gajim shows duplicated MUC PMs upon starting
Issue
Sometimes Gajim shows received messages twice. In this case, the messages were received and displayed as expected, but upon re-starting Gajim, they were shown twice.
In the XML output the message indeed appeared twice, hopefully this gives you a good hint:
11/02/22 20:54:13 (I) nbxmpp.connection (conversations.im) ::::: DATA RECEIVED ::::
<message to='MyJID/gajim.VKM215WK' from='MyJID'>
<result id='1667418533544831' queryid='6ef0cb16-47f8-47d7-aac9-a45b54135920' xmlns='urn:xmpp:mam:2'><forwarded xmlns='urn:xmpp:forward:0'>
<message xml:lang='en' to='MyJID/Conversations.abcd' from='gajim@conference.gajim.org/user' type='chat' id='e39953e7-5eab-47ad-a6bb-d23f9f9c9f4b' xmlns='jabber:client'>
<archived by='MyJID' id='1667418533544831' xmlns='urn:xmpp:mam:tmp'/>
<stanza-id by='MyJID' id='1667418533544831' xmlns='urn:xmpp:sid:0'/>
<origin-id xmlns='urn:xmpp:sid:0' id='e39953e7-5eab-47ad-a6bb-d23f9f9c9f4b'/>
<request xmlns='urn:xmpp:receipts'/>
<markable xmlns='urn:xmpp:chat-markers:0'/>
<x xmlns='http://jabber.org/protocol/muc#user'/>
<body>Received Message</body></message>
<delay from='conversations.im' stamp='2022-11-02T19:48:53.544831Z' xmlns='urn:xmpp:delay'/>
</forwarded>
</result>
</message>
(...)
11/02/22 20:54:13 (I) nbxmpp.connection (conversations.im) ::::: DATA RECEIVED ::::
<message to='MyJID/gajim.VKM215WK' from='MyJID'>
<result id='1667418533544704' queryid='6ef0cb16-47f8-47d7-aac9-a45b54135920' xmlns='urn:xmpp:mam:2'><forwarded xmlns='urn:xmpp:forward:0'>
<message xml:lang='en' to='MyJID/dino.hash' from='gajim@conference.gajim.org/user' type='chat' id='e39953e7-5eab-47ad-a6bb-d23f9f9c9f4b' xmlns='jabber:client'>
<archived by='MyJID' id='1667418533544704' xmlns='urn:xmpp:mam:tmp'/>
<stanza-id by='MyJID' id='1667418533544704' xmlns='urn:xmpp:sid:0'/>
<origin-id xmlns='urn:xmpp:sid:0' id='e39953e7-5eab-47ad-a6bb-d23f9f9c9f4b'/>
<request xmlns='urn:xmpp:receipts'/><markable xmlns='urn:xmpp:chat-markers:0'/><x xmlns='http://jabber.org/protocol/muc#user'/>
<body>Received Message</body>
</message>
<delay from='conversations.im' stamp='2022-11-02T19:48:53.544704Z' xmlns='urn:xmpp:delay'/>
</forwarded>
</result>
</message>