This commit is contained in:
parent
80c53a079b
commit
189404e22c
@ -401,7 +401,7 @@ export default function (io: SocketServer, router: types.Router) {
|
||||
async function getJoinedSockets(excludeId?: string) {
|
||||
const sockets = await namespace.fetchSockets()
|
||||
|
||||
return sockets.filter(socket => socket.data.joined && (excludeId && excludeId !== socket.id))
|
||||
return sockets.filter(socket => socket.data.joined && (excludeId ? excludeId !== socket.id : true))
|
||||
}
|
||||
|
||||
async function createConsumer(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user