Commit e59168a3 authored by JC Brand's avatar JC Brand

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.
parent 75342b06
......@@ -329,7 +329,7 @@
if (!this.$el.is(':visible')) {
return;
}
if (this.$roster.hasScrollBar()) {
if (_converse.roster.length >= 10) {
this.filter_view.show();
} else if (!this.filter_view.isActive()) {
this.filter_view.hide();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment