diff --git a/src/chat/chat.gateway.ts b/src/chat/chat.gateway.ts index bb2fcba..5617e72 100644 --- a/src/chat/chat.gateway.ts +++ b/src/chat/chat.gateway.ts @@ -153,6 +153,5 @@ export class ChatGateway await this.server .to(`${roomId}_list`) .emit('leave_room', { roomId: roomId, userId: client.data.userId }); - client.leave(roomId); } }