stream-chat-js icon indicating copy to clipboard operation
stream-chat-js copied to clipboard

Removed users are not removed after re-watching a channel

Open mfbx9da4 opened this issue 2 years ago • 1 comments

  1. Create and watch a channel (logged in as Alice)
  2. Invite Bob (as Alice)
  3. Unwatch the channel (as Alice)
  4. Bob rejects the invite / leaves the channel
  5. Watch the channel again (as Alice)
  6. 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.

mfbx9da4 avatar Jun 14 '22 09:06 mfbx9da4

Thanks for reporting this, I've reproduced this with a test. I'll look into fixing this.

madsroskar avatar Jun 17 '22 09:06 madsroskar