stream-chat-js
stream-chat-js copied to clipboard
Removed users are not removed after re-watching a channel
- Create and watch a channel (logged in as Alice)
- Invite Bob (as Alice)
- Unwatch the channel (as Alice)
- Bob rejects the invite / leaves the channel
- Watch the channel again (as Alice)
- Bob is still listed in state.members as invited
The issue is that this line is only additive https://github.com/GetStream/stream-chat-js/blob/master/src/channel.ts#L1356 and never removes users.
Thanks for reporting this, I've reproduced this with a test. I'll look into fixing this.