diff --git a/server/sockets/webrtc.ts b/server/sockets/webrtc.ts index c4393c3..e63e736 100644 --- a/server/sockets/webrtc.ts +++ b/server/sockets/webrtc.ts @@ -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(