Procházet zdrojové kódy

Merge pull request #373 from floriancargoet/fix/group-show

Fixes #372
JC Brand před 10 roky
rodič
revize
2ede031c27
1 změnil soubory, kde provedl 6 přidání a 4 odebrání
  1. 6 4
      converse.js

+ 6 - 4
converse.js

@@ -4003,10 +4003,12 @@
             },
 
             show: function () {
-                // FIXME: There's a bug here, if show_only_online_users is true
-                // Possible solution, get the group, call _.each and check
-                // showInRoster
-                this.$el.nextUntil('dt').addBack().show();
+                this.$el.show();
+                _.each(this.getAll(), function (contactView) {
+                    if (contactView.model.showInRoster()) {
+                        contactView.$el.show();
+                    }
+                });
             },
 
             hide: function () {