Explorar o código

Fix send_chat_state_notifications option for MUCs

Fixes half of #1337.
Lynesth %!s(int64=6) %!d(string=hai) anos
pai
achega
7e370c1b81
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/headless/converse-muc.js

+ 1 - 1
src/headless/converse-muc.js

@@ -441,7 +441,7 @@ converse.plugins.add('converse-muc', {
                  * as taken from the 'chat_state' attribute of the chat box.
                  * See XEP-0085 Chat State Notifications.
                  */
-                if (this.get('connection_status') !==  converse.ROOMSTATUS.ENTERED) {
+                if (!_converse.send_chat_state_notifications || this.get('connection_status') !== converse.ROOMSTATUS.ENTERED) {
                     return;
                 }
                 const chat_state = this.get('chat_state');