From 8de318a9b1cd6bbbd4a6f15b86ab3153dc85b1e7 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Mon, 13 Mar 2017 19:01:32 +0300 Subject: [PATCH] [Common] fixed counting online users --- apps/common/main/lib/collection/Users.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/common/main/lib/collection/Users.js b/apps/common/main/lib/collection/Users.js index 8a6bbfa65..546851549 100644 --- a/apps/common/main/lib/collection/Users.js +++ b/apps/common/main/lib/collection/Users.js @@ -54,7 +54,7 @@ define([ getOnlineCount: function() { var count = 0; this.each(function(user){ - user.online && count++; + user.get('online') && ++count; }); return count;