Project

General

Profile

Additional child elements in MUC message stanza not allowed?

Justin Posey
Added almost 5 years ago

It appears that child elements placed into an MUC message stanza by the server are not preserved when sent to the client. The only element that appears to be preserved is "body" and anything with an xmlns of "http://jabber.org/protocol/chatstates". Why does this behavior exist? Can the MUC code be changed to allow arbitrary child elements to be inserted? Thanks!

ALLOWED:

<message from="groupchat-id@muc.di" to="bob@domain" type="groupchat" xmlns="jabber:client">
    <body>my body</body>
    <customElement xmlns="http://jabber.org/protocol/chatstates"/>
</message>

NOT ALLOWED:

<message from="groupchat-id@muc.di" to="bob@domain" type="groupchat" xmlns="jabber:client">
    <body>my body</body>
    <customElement xmlns="http://example.com/custom/namespace"/>
</message>

Replies (2)

Added by Wojciech Kapcia TigaseTeam almost 5 years ago

Isn't this the same question asked today: https://projects.tigase.org/boards/8/topics/1182 ?

(1)

Added by Justin Posey almost 5 years ago

Indeed it is. Thank you!

    (1-2/2)