rosterview: show filter when there are 10 or more contacts
Instead of checking if there's a scrollbar. Otherwise the filter disappears when all groups are collapsed.
This commit is contained in:
parent
75342b066e
commit
e59168a360
@ -329,7 +329,7 @@
|
|||||||
if (!this.$el.is(':visible')) {
|
if (!this.$el.is(':visible')) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.$roster.hasScrollBar()) {
|
if (_converse.roster.length >= 10) {
|
||||||
this.filter_view.show();
|
this.filter_view.show();
|
||||||
} else if (!this.filter_view.isActive()) {
|
} else if (!this.filter_view.isActive()) {
|
||||||
this.filter_view.hide();
|
this.filter_view.hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user