dont join online_users and uid_ if user does not exist

v1.18.x
Baris Usakli 8 years ago
parent 0d0ea0977f
commit 19ae2b3eb4

@ -79,7 +79,7 @@ function onConnect(socket) {
if (err) {
return winston.error(err);
}
if (socket.uid) {
if (socket.uid && exists) {
socket.join('uid_' + socket.uid);
socket.join('online_users');
} else {

Loading…
Cancel
Save