Procházet zdrojové kódy

trimChats called in converse-minimize. Return the view.

JC Brand před 9 roky
rodič
revize
fa69bb1b0a
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/converse-chatview.js

+ 2 - 2
src/converse-chatview.js

@@ -42,9 +42,9 @@
                     if (!view && !item.get('chatroom')) {
                         view = new converse.ChatBoxView({model: item});
                         this.add(item.get('id'), view);
-                        this.trimChats(view);
+                        return view;
                     } else {
-                        this._super.onChatBoxAdded.apply(this, arguments);
+                        return this._super.onChatBoxAdded.apply(this, arguments);
                     }
                 }
             }