real-time-chat
real-time-chat copied to clipboard
[fix]: bugs in userManager.ts
trafficstars
1. an existing user should not be duplicated in the same room
- [x] check if user exists in the room before pushing a new user to the room
2. removeUser method doesn't update the room users after a particular room user is removed
- [x] update the room.users after current user filtering is done