Direct Message in MUC presented as message from MUC room
Reproduction steps:
- Open DM from MUC by double clicking a person's nick
- Send a message
- Receive message, sometimes in wrong window (in MUC window), with nickname "room name"
Here's an example of a message that was wrongly displayed in MUC window, with "YuNoHost Support Room" as nick:
<message xmlns="jabber:client" id="XXXXXXXXXXX" type="chat" to="me@example.com/gajim.XXXXXX" from="support@conference.yunohost.org/them">
<body>Some body</body>
<origin-id id="XXXXXXXXXXX" xmlns="urn:xmpp:sid:0" />
<stanza-id id="YYYYYYYYYYY" by="me@example.com" xmlns="urn:xmpp:sid:0" />
</message>
Here's an example of a message that was correctly displayed in the proper window:
<message xmlns="jabber:client" type="chat" to="me@example.com/gajim.YYYYYYY" from="chat@xmpp.rs/anotherperson" id="XXXXXXXXXXXXXXX" xml:lang="en">
<body>Some body</body>
<request xmlns="urn:xmpp:receipts" />
<origin-id id="XXXXXXXXXXXXXXX" xmlns="urn:xmpp:sid:0" />
<x xmlns="http://jabber.org/protocol/muc#user" />
<occupant-id id="YYYYYYYYYYYYYYYYYYY" xmlns="urn:xmpp:occupant-id:0" />
</message>
I'm not sure that this is a gajim bug. The main difference i see is the second one has <x xmlns="http://jabber.org/protocol/muc#user" />
and an occupant-id. The muc#user
namespace is a SHOULD
in the MUC XEP.
I believe the first conversation (improperly displayed) was with someone joining the MUC from bifrost.