diff --git a/src/messaging/rooms.js b/src/messaging/rooms.js index 092b5c85f2..5cc3459291 100644 --- a/src/messaging/rooms.js +++ b/src/messaging/rooms.js @@ -89,7 +89,7 @@ module.exports = function(Messaging) { }; Messaging.getUidsInRoom = function(roomId, start, stop, callback) { - db.getSortedSetRange('chat:room:' + roomId + ':uids', start, stop, callback); + db.getSortedSetRevRange('chat:room:' + roomId + ':uids', start, stop, callback); }; Messaging.getUsersInRoom = function(roomId, start, stop, callback) {