From 59dc4024b9361ecfbd842ac6de5b8aec94a12a61 Mon Sep 17 00:00:00 2001 From: Baris Usakli Date: Mon, 26 Mar 2018 12:05:34 -0400 Subject: [PATCH] guests should be offline --- src/user.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/user.js b/src/user.js index 6661dca8a7..8b41c05147 100644 --- a/src/user.js +++ b/src/user.js @@ -110,6 +110,9 @@ User.getUsers = function (uids, uid, callback) { }; User.getStatus = function (userData) { + if (parseInt(userData.uid) <= 0) { + return 'offline'; + } var isOnline = (Date.now() - parseInt(userData.lastonline, 10)) < 300000; return isOnline ? (userData.status || 'online') : 'offline'; };