Просмотр исходного кода

Bugfix. Chatboxes aren't closed when logging out.

JC Brand 8 лет назад
Родитель
Сommit
3b38f7237c
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      docs/CHANGES.md
  2. 1 1
      src/converse-core.js

+ 1 - 0
docs/CHANGES.md

@@ -5,6 +5,7 @@
 - Enable new rooms to be configured automatically, with a default config, via `rooms.open`.
   For details, refer to the [relevant documentation](https://conversejs.org/docs/html/developer_api.html#the-rooms-grouping) [jcbrand]
 - Bugfix: Arrays in configuration settings were ignored. [jcbrand]
+- Bugfix: Chatboxes aren't closed when logging out. [jcbrand]
 
 ## 2.0.1 (2016-11-07)
 - #203 New configuration setting [muc_domain](https://conversejs.org/docs/html/configuration.html#muc_domain) [jcbrand]

+ 1 - 1
src/converse-core.js

@@ -534,6 +534,7 @@
         };
 
         this.logOut = function () {
+            converse.chatboxviews.closeAllChatBoxes();
             converse.disconnection_cause = converse.LOGOUT;
             if (typeof converse.connection !== 'undefined') {
                 converse.connection.disconnect();
@@ -541,7 +542,6 @@
             }
             converse.clearSession();
             converse._tearDown();
-            converse.chatboxviews.closeAllChatBoxes();
             converse.emit('logout');
         };