From 7f9d9b765421370d1f7a50f4860b9488f0218714 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 8 Feb 2018 10:35:20 -0500 Subject: [PATCH] closes #6316 --- src/socket.io/user/status.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/socket.io/user/status.js b/src/socket.io/user/status.js index 8849f0210e..ccae98ff4c 100644 --- a/src/socket.io/user/status.js +++ b/src/socket.io/user/status.js @@ -39,6 +39,13 @@ module.exports = function (SocketUser) { function (next) { user.setUserFields(socket.uid, data, next); }, + function (next) { + if (status !== 'offline') { + user.updateOnlineUsers(socket.uid, next); + } else { + next(); + } + }, function (next) { var data = { uid: socket.uid,