Browse Source

trimChats called in converse-minimize. Return the view.

JC Brand 9 years ago
parent
commit
fa69bb1b0a
1 changed files with 2 additions and 2 deletions
  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);
                     }
                 }
             }