Open licaon-kter opened 4 years ago
Umm now I see myhamlet@conference.somedomain.tld invited you to myhamlet@conference.somedomain.tld
which still does not sound right as I expect (better said find more useful) to be invited by a user not by the MUC itself (specially when MUC ids are randomly generated)
iNPUTmice says: "you might have reported that against mediated invites, but that fix is for direct invites"
The "problem" is that ejabberd sends a mediated and a direct invite in the same message stanza. As far as I can tell Converse.js doesn’t support mediated invites and only parses the direct invite. Direct invites usually come from the the inviter. Therefor Converse.js correctly parses the from of the message stanza - which in this case is the room itself.
You're right @iNPUTmice. @licaon-kter can you post an example stanza from ejabberd so that I can write a test for it?
<message xmlns="jabber:client" from="conversations@conference.siacs.eu" to="christ19@jabber.de">
<x xmlns="http://jabber.org/protocol/muc#user">
<invite xmlns="http://jabber.org/protocol/muc#user" from="daniel@example.com/Conversations.QS-P"/>
</x>
<x jid="conversations@conference.siacs.eu" xmlns="jabber:x:conference"/>
<body xml:lang="en" xmlns="jabber:client">daniel@example.com/Conversations.QS-P invites you to the room conversations@conference.siacs.eu</body>
</message>
@jcbrand no, not really :))
Do I see this in the debug console?
/LE: beaten by the boss :)
...instead of user.
HEAD (d17ae811d758e35f24770bd46ad88ee976f5c6b3), Firefox 72
Steps:
Expected:
romeo@domain.tld has invited you to join a groupchat: myhamlet@conference.somedomain.tld
Actual result:
myhamlet has invited you to join a groupchat: myhamlet@conference.somedomain.tld