Browse Source

Hide the minimized chats toggle immediately

Otherwise the hide event can prevent a consecutive show event.
This bug becomes apparent when maximizing a minimized chat in a screen with not
enough space.

Another box will have to be minimized, which causes first a hide and then a
show event on the minimized chats toggle.
JC Brand 9 years ago
parent
commit
38322c7795
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/converse-minimize.js

+ 2 - 1
src/converse-minimize.js

@@ -394,7 +394,8 @@
 
                 render: function () {
                     if (this.keys().length === 0) {
-                        this.$el.hide('fast', converse.chatboxviews.trimChats.bind(converse.chatboxviews));
+                        this.$el.hide();
+                        converse.chatboxviews.trimChats.bind(converse.chatboxviews);
                     } else if (this.keys().length === 1 && !this.$el.is(':visible')) {
                         this.$el.show('fast', converse.chatboxviews.trimChats.bind(converse.chatboxviews));
                     }