trimChats called in converse-minimize. Return the view.
This commit is contained in:
parent
55593245f3
commit
fa69bb1b0a
@ -42,9 +42,9 @@
|
|||||||
if (!view && !item.get('chatroom')) {
|
if (!view && !item.get('chatroom')) {
|
||||||
view = new converse.ChatBoxView({model: item});
|
view = new converse.ChatBoxView({model: item});
|
||||||
this.add(item.get('id'), view);
|
this.add(item.get('id'), view);
|
||||||
this.trimChats(view);
|
return view;
|
||||||
} else {
|
} else {
|
||||||
this._super.onChatBoxAdded.apply(this, arguments);
|
return this._super.onChatBoxAdded.apply(this, arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user