2
0
Эх сурвалжийг харах

Fix failing test by making sure chatroom gets destroyed

JC Brand 8 жил өмнө
parent
commit
21fbb7b7ac

+ 1 - 1
src/converse-chatview.js

@@ -670,8 +670,8 @@
                         // model is going to be destroyed afterwards.
                         // model is going to be destroyed afterwards.
                         this.model.set('chat_state', _converse.INACTIVE);
                         this.model.set('chat_state', _converse.INACTIVE);
                         this.sendChatState();
                         this.sendChatState();
-                        this.model.destroy();
                     }
                     }
+                    this.model.destroy();
                     this.remove();
                     this.remove();
                     _converse.emit('chatBoxClosed', this);
                     _converse.emit('chatBoxClosed', this);
                     return this;
                     return this;