mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
changing function signature for messaging.getMessages
@julianlam should this be moved to 0.8.0?
This commit is contained in:
@@ -22,7 +22,12 @@ SocketModules.chats.get = function(socket, data, callback) {
|
||||
return callback(new Error('[[error:invalid-data]]'));
|
||||
}
|
||||
|
||||
Messaging.getMessages(socket.uid, data.touid, data.since, false, callback);
|
||||
Messaging.getMessages({
|
||||
fromuid: socket.uid,
|
||||
touid: data.touid,
|
||||
since: data.since,
|
||||
isNew: false
|
||||
}, callback);
|
||||
};
|
||||
|
||||
SocketModules.chats.send = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user