mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
disable user_leave for topic
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user