Commit 21fbb7b7 authored by JC Brand's avatar JC Brand

Fix failing test by making sure chatroom gets destroyed

parent 128335e1
......@@ -670,8 +670,8 @@
// model is going to be destroyed afterwards.
this.model.set('chat_state', _converse.INACTIVE);
this.sendChatState();
this.model.destroy();
}
this.model.destroy();
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