Prechádzať zdrojové kódy

muc: Ignore non-MUC (like error) messages

Noticed that Slack sends error messages back in response to chat state
notifications.

We're not doing anything with them currently and they bloat the sessionStorage
JC Brand 8 rokov pred
rodič
commit
1dfdba0db9
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      src/converse-muc.js

+ 1 - 1
src/converse-muc.js

@@ -1161,7 +1161,7 @@
                     );
                     this.message_handler = _converse.connection.addHandler(
                         this.handleMUCMessage.bind(this),
-                        null, 'message', null, null, room_jid,
+                        null, 'message', 'groupchat', null, room_jid,
                         {'matchBareFromJid': true}
                     );
                 },