From e59168a360f574cef9803398a32943a89292983c Mon Sep 17 00:00:00 2001 From: JC Brand Date: Fri, 21 Jul 2017 18:47:43 +0200 Subject: [PATCH] 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. --- src/converse-rosterview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/converse-rosterview.js b/src/converse-rosterview.js index 3e287fe82..342710537 100644 --- a/src/converse-rosterview.js +++ b/src/converse-rosterview.js @@ -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();