mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +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
|
// see https://github.com/Automattic/socket.io/issues/1814
|
||||||
data.rooms.forEach(function(roomName) {
|
// data.rooms.forEach(function(roomName) {
|
||||||
if (roomName.startsWith('topic')) {
|
// if (roomName.startsWith('topic')) {
|
||||||
io.in(roomName).emit('event:user_leave', socket.uid);
|
// io.in(roomName).emit('event:user_leave', socket.uid);
|
||||||
}
|
// }
|
||||||
});
|
// });
|
||||||
}
|
}
|
||||||
rooms.leaveAll(socket, data.rooms);
|
rooms.leaveAll(socket, data.rooms);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user