only send user status on first connect

v1.18.x
barisusakli 9 years ago
parent 7441c181b4
commit 7ca7a31a5a

@ -59,6 +59,9 @@ function onConnect(socket) {
socket.join('uid_' + socket.uid);
socket.join('online_users');
if (Sockets.getUserSocketCount(socket.uid) > 1) {
return;
}
user.getUserFields(socket.uid, ['status'], function(err, userData) {
if (err || !userData) {
return;

Loading…
Cancel
Save