mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 10:35:55 +01:00
only for logged in users
This commit is contained in:
@@ -93,10 +93,16 @@ SocketModules.composer.renderHelp = function(socket, data, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
SocketModules.composer.notifyTyping = function(socket, data) {
|
SocketModules.composer.notifyTyping = function(socket, data) {
|
||||||
|
if (!socket.uid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
server.in('topic_' + data.tid).emit('event:topic.notifyTyping', data);
|
server.in('topic_' + data.tid).emit('event:topic.notifyTyping', data);
|
||||||
};
|
};
|
||||||
|
|
||||||
SocketModules.composer.stopNotifyTyping = function(socket, data) {
|
SocketModules.composer.stopNotifyTyping = function(socket, data) {
|
||||||
|
if (!socket.uid) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
server.in('topic_' + data.tid).emit('event:topic.stopNotifyTyping', data);
|
server.in('topic_' + data.tid).emit('event:topic.stopNotifyTyping', data);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user