Przeglądaj źródła

Handle all presence stanzas sent from the room

Our handler was too restrictive due to the namespace matching.
When joining a room and the room's remote server can not be found, then
the resulting error messages doesn't not have the MUC namespace.
JC Brand 7 lat temu
rodzic
commit
eb1f462e07
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/converse-muc.js

+ 1 - 1
src/converse-muc.js

@@ -204,7 +204,7 @@
                             this.onPresence(stanza);
                             return true;
                         },
-                        Strophe.NS.MUC, 'presence', null, null, room_jid,
+                        null, 'presence', null, null, room_jid,
                         {'ignoreNamespaceFragment': true, 'matchBareFromJid': true}
                     );
                     this.message_handler = _converse.connection.addHandler((stanza) => {