fixed anon count in browsing text if there are no logged in users

v1.18.x
Baris Usakli 11 years ago
parent 866d813218
commit 99c2fbd947

@ -169,7 +169,7 @@ module.exports.init = function(io) {
var anonymousCount = getAnonymousCount(roomName);
if (uids.length === 0) {
io.sockets. in (roomName).emit('api:get_users_in_room', { users: [], anonymousCount:0 });
io.sockets. in (roomName).emit('api:get_users_in_room', { users: [], anonymousCount: anonymousCount });
} else {
user.getMultipleUserFields(uids, ['uid', 'username', 'userslug', 'picture'], function(err, users) {
if(!err)

Loading…
Cancel
Save