Commit 53621567 authored by JC Brand's avatar JC Brand

While connecting, treat "modify" error as a disconnection event

parent 73fd3d6a
......@@ -1407,11 +1407,15 @@ converse.plugins.add('converse-muc', {
handleModifyError(pres) {
const text = _.get(pres.querySelector('error text'), 'textContent');
if (text) {
const attrs = {
'type': 'error',
'message': text
if (this.get('connection_status') === converse.ROOMSTATUS.CONNECTING) {
this.setDisconnectionMessage(text);
} else {
const attrs = {
'type': 'error',
'message': text
}
this.messages.create(attrs);
}
this.messages.create(attrs);
}
},
......
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