Commit 5f0a0138 authored by JC Brand's avatar JC Brand

Finegrained config of XEP-0095 CSNs for MUCs as well

parent ec85490f
......@@ -742,6 +742,10 @@ converse.plugins.add('converse-muc', {
this.features.get('moderated') && this.getOwnRole() === 'visitor') {
return;
}
const allowed = _converse.send_chat_state_notifications;
if (Array.isArray(allowed) && !allowed.includes(this.get('chat_state'))) {
return;
}
const chat_state = this.get('chat_state');
if (chat_state === _converse.GONE) {
// <gone/> is not applicable within MUC context
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment