소스 검색

Fix send_chat_state_notifications option for MUCs

Fixes half of #1337.
Lynesth 6 년 전
부모
커밋
7e370c1b81
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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.
                  * as taken from the 'chat_state' attribute of the chat box.
                  * See XEP-0085 Chat State Notifications.
                  * 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;
                     return;
                 }
                 }
                 const chat_state = this.get('chat_state');
                 const chat_state = this.get('chat_state');