mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +01:00
closes #4063
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user