Skip to content

Node.js based forum software built for the modern web

disable user_leave for topic

barisusakli0199ed27a637
diff --git a/src/socket.io/index.js b/src/socket.io/index.js
index 6201ec3297..17d46a5303 100644
--- a/src/socket.io/index.js
+++ b/src/socket.io/index.js
@@ -90,11 +90,11 @@ function onDisconnect(socket, data) {
}
// see https://github.com/Automattic/socket.io/issues/1814
- data.rooms.forEach(function(roomName) {
- if (roomName.startsWith('topic')) {
- io.in(roomName).emit('event:user_leave', socket.uid);
- }
- });
+ // data.rooms.forEach(function(roomName) {
+ // if (roomName.startsWith('topic')) {
+ // io.in(roomName).emit('event:user_leave', socket.uid);
+ // }
+ // });
}
rooms.leaveAll(socket, data.rooms);
}