Przeglądaj źródła

Bugfix. Fetched chat boxes weren't being shown automatically.

JC Brand 10 lat temu
rodzic
commit
f4edf75c72
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      converse.js

+ 5 - 0
converse.js

@@ -3159,6 +3159,11 @@
                 this.fetch({
                     add: true,
                     success: $.proxy(function (collection, resp) {
+                        collection.each(function (chatbox) {
+                            if (chatbox.get('id') !== 'controlbox' && !chatbox.get('minimized')) {
+                                chatbox.trigger('show');
+                            }
+                        });
                         if (!_.include(_.pluck(resp, 'id'), 'controlbox')) {
                             this.add({
                                 id: 'controlbox',