renamed end to stop globally

fixed getting favourites for admins
This commit is contained in:
barisusakli
2015-03-31 23:40:58 -04:00
parent 27bab3330a
commit 878e548296
26 changed files with 160 additions and 166 deletions

View File

@@ -249,9 +249,9 @@ SocketModules.chats.getRecentChats = function(socket, data, callback) {
return callback(new Error('[[error:invalid-data]]'));
}
var start = parseInt(data.after, 10),
end = start + 9;
stop = start + 9;
Messaging.getRecentChats(socket.uid, start, end, callback);
Messaging.getRecentChats(socket.uid, start, stop, callback);
};