Fix send_chat_state_notifications option for MUCs

Fixes half of #1337.
This commit is contained in:
Lynesth 2019-01-05 23:50:58 +11:00 committed by JC Brand
parent ec14a31908
commit 7e370c1b81

View File

@ -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');