From 478653aebd3b8616451cd03df8500336834de370 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 18 Dec 2013 16:48:02 +0200 Subject: [PATCH] Bugfix. Wrong number of online contacts shown. Fixes #97 --- converse.js | 6 +++++- docs/CHANGES.rst | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/converse.js b/converse.js index 7aa54e06e..fceac4529 100644 --- a/converse.js +++ b/converse.js @@ -2707,11 +2707,15 @@ getNumOnlineContacts: function () { var count = 0, + ignored = ['offline', 'unavailable'], models = this.models, models_length = models.length, i; + if (converse.show_only_online_users) { + ignored = _.union(ignored, ['dnd', 'xa', 'away']); + } for (i=0; i