浏览代码

trimChats called in converse-minimize. Return the view.

JC Brand 9 年之前
父节点
当前提交
fa69bb1b0a
共有 1 个文件被更改,包括 2 次插入2 次删除
  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);
                     }
                 }
             }