浏览代码

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 年之前
父节点
当前提交
1dfdba0db9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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}
                     );
                 },