From 63e3794ba71121b30d27fb60df7c7c5de4ee1aee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Cargo=C3=ABt?= Date: Fri, 17 Apr 2015 16:24:02 +0200 Subject: [PATCH] Fixes #372 --- converse.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/converse.js b/converse.js index c7f7343fa..91b5f07a0 100644 --- a/converse.js +++ b/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 () {