This commit is contained in:
barisusakli
2016-01-18 15:35:24 +02:00
parent a133374c0b
commit cb91587567
3 changed files with 57 additions and 3 deletions

View File

@@ -294,6 +294,12 @@ SocketModules.chats.getRecentChats = function(socket, data, callback) {
Messaging.getRecentChats(socket.uid, start, stop, callback);
};
SocketModules.chats.hasPrivateChat = function(socket, uid, callback) {
if (!socket.uid || !uid) {
return callback(null, new Error('[[error:invalid-data]]'));
}
Messaging.hasPrivateChat(socket.uid, uid, callback);
};
/* Sounds */
SocketModules.sounds.getSounds = function(socket, data, callback) {