Explorar el Código

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 hace 7 años
padre
commit
eb1f462e07
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) => {