rosterview: When filtering, contacts in closed groups appear.

This commit is contained in:
JC Brand 2017-07-21 18:48:55 +02:00
parent e59168a360
commit b1e5cb26a1
2 changed files with 9 additions and 3 deletions

View File

@ -32,6 +32,8 @@
- #866 Add babel in order to support ES2015 syntax [jcbrand]
#### Bugfixes:
- Roster filter is not shown when all groups are collapsed. [jcbrand]
- When filtering, contacts in closed groups appear. [jcbrand]
- Room name wasn't being updated after changing it in the configuration form. [jcbrand]
- Server disco features were "forgotten" after logging out and then logging in again. [jcbrand]
- Don't show duplicate sent groupchat messages in Slack chat rooms. [jcbrand]

View File

@ -819,9 +819,13 @@
_.each(matches, (item) => {
this.get(item.get('id')).$el.hide();
});
_.each(this.model.contacts.reject(
utils.contains.not('fullname', q)),
(item) => { this.get(item.get('id')).$el.show(); });
if (this.model.get('state') === _converse.OPENED) {
_.each(this.model.contacts.reject(
utils.contains.not('fullname', q)),
(item) => {
this.get(item.get('id')).$el.show();
});
}
this.showIfNecessary();
}
}