@barisusakli  there was a return; if user is offline, don't see any
reason why it should be so I removed it, just FYI
This commit is contained in:
psychobunny
2015-04-08 18:11:17 -04:00
parent 43bd798f2b
commit 56d1b521c5
2 changed files with 3 additions and 6 deletions

View File

@@ -29,9 +29,9 @@ SocketUser.deleteAccount = function(socket, data, callback) {
if (err || isAdmin) {
return callback(err || new Error('[[error:cant-delete-admin]]'));
}
user.deleteAccount(socket.uid, callback);
socket.broadcast.emit('event:user_status_change', {uid: socket.uid, status: 'offline'});
user.deleteAccount(socket.uid, callback);
});
}
};