small fix

This commit is contained in:
barisusakli
2015-07-14 17:12:59 -04:00
parent daf1a388eb
commit dc7839b511

View File

@@ -290,7 +290,7 @@ Sockets.getUsersInRoom = function (uid, roomName, start, stop, callback) {
callback(null, { callback(null, {
users: users, users: users,
room: roomName, room: roomName,
total: total, total: users.length ? total : 0,
hidden: Math.max(0, total - uids.length) hidden: Math.max(0, total - uids.length)
}); });
}); });