mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 11:35:55 +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) {
|
if (!socket.uid || !data) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
server.getUserSockets(data.touid).forEach(function(socket) {
|
server.in('uid_' + data.touid).emit(event, data.fromUid);
|
||||||
socket.emit(event, data.fromUid);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SocketModules.chats.list = function(socket, data, callback) {
|
SocketModules.chats.list = function(socket, data, callback) {
|
||||||
|
|||||||
Reference in New Issue
Block a user