Browse Source

Close all chat boxes when disconnected (with no reconnection attempt)

JC Brand 8 năm trước cách đây
mục cha
commit
0fe4031a1b
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/converse-core.js

+ 1 - 0
src/converse-core.js

@@ -450,6 +450,7 @@
             }
             delete converse.connection.reconnecting;
             converse._tearDown();
+            converse.chatboxviews.closeAllChatBoxes();
             converse.emit('disconnected');
             converse.log('DISCONNECTED');
             return 'disconnected';