Check the "closed" state of the controlbox
when trimming chats.
This commit is contained in:
parent
1bf8b80cec
commit
6258cfa089
@ -218,7 +218,14 @@
|
||||
|
||||
getShownChats: function () {
|
||||
return this.filter(function (view) {
|
||||
return (!view.model.get('minimized') && view.$el.is(':visible'));
|
||||
// The controlbox can take a while to close,
|
||||
// so we need to check its state. That's why we checked
|
||||
// the 'closed' state.
|
||||
return (
|
||||
!view.model.get('minimized') &&
|
||||
!view.model.get('closed') &&
|
||||
view.$el.is(':visible')
|
||||
);
|
||||
});
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user