mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
chat typing notif use room
This commit is contained in:
@@ -266,9 +266,7 @@ function sendTypingNotification(event, socket, data, callback) {
|
||||
if (!socket.uid || !data) {
|
||||
return;
|
||||
}
|
||||
server.getUserSockets(data.touid).forEach(function(socket) {
|
||||
socket.emit(event, data.fromUid);
|
||||
});
|
||||
server.in('uid_' + data.touid).emit(event, data.fromUid);
|
||||
}
|
||||
|
||||
SocketModules.chats.list = function(socket, data, callback) {
|
||||
|
||||
Reference in New Issue
Block a user