Commit 1e100a67 authored by JC Brand's avatar JC Brand

Catch error when destroying

parent a2735d4c
......@@ -699,7 +699,11 @@
this.model.set('chat_state', _converse.INACTIVE);
this.sendChatState();
}
this.model.destroy();
try {
this.model.destroy();
} catch (e) {
converse.log(e);
}
this.remove();
_converse.emit('chatBoxClosed', this);
return this;
......
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