Fix failing test by making sure chatroom gets destroyed

This commit is contained in:
JC Brand 2017-02-27 21:21:38 +00:00
parent 128335e1dc
commit 21fbb7b7ac

View File

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