Jelajahi Sumber

Call trimChats immediately, not only after the element is visible

Since the element will already be taking up space (due to the
`opacity:0` property being used, instead of `display:none`).
JC Brand 8 tahun lalu
induk
melakukan
6abd805b52
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/converse-minimize.js

+ 2 - 2
src/converse-minimize.js

@@ -113,8 +113,8 @@
                     return this.__super__.initialize.apply(this, arguments);
                 },
 
-                afterShown: function () {
-                    this.__super__.afterShown.apply(this, arguments);
+                _show: function () {
+                    this.__super__._show.apply(this, arguments);
                     if (!this.model.get('minimized')) {
                         converse.chatboxviews.trimChats(this);
                     }