This commit is contained in:
barisusakli
2014-05-12 18:42:13 -04:00
parent fc00586f0e
commit c5d9a68b4b
7 changed files with 43 additions and 5 deletions

View File

@@ -121,8 +121,8 @@ var db = require('./database'),
});
};
Messaging.getRecentChats = function(uid, callback) {
db.getSortedSetRevRange('uid:' + uid + ':chats', 0, 9, function(err, uids) {
Messaging.getRecentChats = function(uid, start, end, callback) {
db.getSortedSetRevRange('uid:' + uid + ':chats', start, end, function(err, uids) {
if(err) {
return callback(err);
}