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

Catch error when destroying

JC Brand 8 жил өмнө
parent
commit
1e100a67e3

+ 5 - 1
src/converse-chatview.js

@@ -699,7 +699,11 @@
                         this.model.set('chat_state', _converse.INACTIVE);
                         this.sendChatState();
                     }
-                    this.model.destroy();
+                    try {
+                        this.model.destroy();
+                    } catch (e) {
+                        converse.log(e);
+                    }
                     this.remove();
                     _converse.emit('chatBoxClosed', this);
                     return this;