Explorar o código

Fix failing test by making sure chatroom gets destroyed

JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
21fbb7b7ac
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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;