Explorar o código

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.
JC Brand %!s(int64=8) %!d(string=hai) anos
pai
achega
e59168a360
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/converse-rosterview.js

+ 1 - 1
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();