diff --git a/converse.js b/converse.js index 91b5f07a0..7a97a91e3 100644 --- a/converse.js +++ b/converse.js @@ -3978,7 +3978,7 @@ if (contact.showInRoster()) { if (this.model.get('state') === CLOSED) { if (view.$el[0].style.display !== "none") { view.$el.hide(); } - if (this.$el[0].style.display === "none") { this.$el.show(); } + if (!this.$el.is(':visible')) { this.$el.show(); } } else { if (this.$el[0].style.display !== "block") { this.show(); } }