Skip to content

Commit

Permalink
fix: leave_room error
Browse files Browse the repository at this point in the history
  • Loading branch information
kyeahxx19 committed Nov 20, 2023
1 parent c792a79 commit 504fa69
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/chat/chat.gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 504fa69

Please sign in to comment.