浏览代码

Fix failing test by making sure chatroom gets destroyed

JC Brand 8 年之前
父节点
当前提交
21fbb7b7ac
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/converse-chatview.js

+ 1 - 1
src/converse-chatview.js

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