Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: unread on ChannelPreview not updating after muting & unmuting a channel #2306

Closed
davidmeredith-hudl opened this issue Mar 1, 2024 · 1 comment · Fixed by GetStream/stream-chat-js#1265
Labels
bug Something isn't working status:confirmed Described issue has been reproduced by the repo maintainer

Comments

@davidmeredith-hudl
Copy link

Describe the bug
The unread prop on the ChannelPreview component is not updating correctly after a channel is muted and then unmuted.

To Reproduce

Steps to reproduce the behavior:

  1. Have a channel with at least one unread message.
  2. Mute the channel using channel.mute(). I believe this is the point where unread gets set to 0.
  3. Unmute the channel using channel.unmute().
  4. Note that unread is still 0, despite the channel being unmuted and having unread messages.

The unread count is correct after following these steps and refreshing the page.

Expected behavior

unread should be updated to the correct number of unread messages in a channel after the unmute action.

Screenshots

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react: 11.8.0
  • stream-chat: 8.16.0

Desktop (please complete the following information):

  • OS: Mac OS 13.6.2
  • Browser: Chrome
  • Version 121.0.6167.184 (Official Build) (arm64)

Additional context

Add any other context about the problem here.

@davidmeredith-hudl davidmeredith-hudl added bug Something isn't working status: unconfirmed labels Mar 1, 2024
@MartinCupela MartinCupela added status:confirmed Described issue has been reproduced by the repo maintainer and removed status: unconfirmed labels Mar 27, 2024
@MartinCupela
Copy link
Contributor

The issue is being addressed: GetStream/stream-chat-js#1265

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:confirmed Described issue has been reproduced by the repo maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants