trimChats called in converse-minimize. Return the view.

This commit is contained in:
JC Brand 2016-03-19 21:56:55 +00:00
parent 55593245f3
commit fa69bb1b0a

View File

@ -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);
}
}
}