Skip to content

bug:channelList doesn't stop watching channels that we are removed from #2599

Open
@kennyvallejodev

Description

@kennyvallejodev

Describe the bug

A clear and concise description of what the bug is.

  1. Render a Channel List with the filter to have us as part of the members
  2. Leave a Channel
  3. Make a User B (some other user that is not you) to send a message to this channel that you just left
  4. Now you'll see this channel popping in the list again even tho you're not part of. (Channel persists as watched even tho we are no longer part of it)

But what's funny is that if you refresh, on a initial state we don't listen on channels that we aren't part of so it solves if you refresh.

To Reproduce

Steps to reproduce the behavior:

  1. Render a Channel List with the filter to have us as part of the members
  2. Leave a Channel
  3. Make a User B (some other user that is not you) to send a message to this channel that you just left
  4. Now you'll see this channel popping in the list again even tho you're not part of. (Channel persists as watched even tho we are no longer part of it)

But what's funny is that if you refresh, on a initial state we don't listen on channels that we aren't part of so it solves if you refresh.

Expected behavior

A clear and concise description of what you expected to happen.
When a channel that's on the list, we stop being part of. We shouldn't be watching that channel anymore (because is doesn't match the query anymore)

Screenshots

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react:^12.8.1
  • stream-chat-css:
  • stream-chat-js:^8.48.0

Desktop (please complete the following information):

  • OS: [e.g. iOS]Mac OS
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] 131.0.6778.265

Smartphone (please complete the following information):

- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

Additional context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstatus:confirmedDescribed issue has been reproduced by the repo maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions