Open ge0rg opened 4 years ago
So I've tested the new code and the response is this:
<presence id="4c098a267b654351a25ad30578c1bdaf" to="georg@yax.im/poezio-IS8H" xml:lang="en" type="error" from="#bridged-room#matrix.org@matrix.org/Ge0rG">
<x xmlns="http://jabber.org/protocol/muc"/>
<error type="cancel" by="#bridged-room#matrix.org@matrix.org">
<service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text>Failed to join room</text>
</error>
</presence>
This has two issues:
<text>
element MUST have the urn:ietf:params:xml:ns:xmpp-stanzas
namespace (as has service-unavailable
) to be interpreted correctly by clients
When an XMPP client fails to join a room, the error response is
It would be great to also have a
<text>
element that would explain the actual cause of the error.