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 count number show do not correct after unmute channel #1294

Open
minhth-1529 opened this issue May 7, 2024 · 3 comments
Open
Labels
bug Something isn't working

Comments

@minhth-1529
Copy link

Describe the bug

I received message from other user A, I muted that channel, user A still send message, I unmute that channel, unread count number show do not correct.

To Reproduce

Screen.Recording.2024-05-07.at.9.37.04.AM.mp4

Expected behavior

show correct unread count number after unmute

Package version

  • stream-chat-react: ^11.17.0
  • stream-chat-css: ^4.15.0
  • stream-chat-js: ^8.30.0
@minhth-1529 minhth-1529 added the bug Something isn't working label May 7, 2024
@arnautov-anton
Copy link
Contributor

Hey, @minhth-1529, the current behavior reflects that of our backend. Please see this PR for more information.

@MartinCupela the issue is still relevant but belongs to the client and before applying the fix it requires BE adjustments - could you please transfer it?

@minhth-1529
Copy link
Author

Hi @arnautov-anton, @MartinCupela I have a new issue i don't know whether it is bug or not.

I connect by using client.connectUser().then(e=>e.me.unread_channels). I want to get total unread channel count number to show on menu when user refresh page.

Like above issue, I have new message from user A (total unread channel is 1), after that I mute user A channel. unread count in user A is 0, but total unread channel from client.connectUser().then(e=>e.me.unread_channels) still 1

@MartinCupela MartinCupela transferred this issue from GetStream/stream-chat-react May 7, 2024
@MartinCupela
Copy link
Contributor

@minhth-1529 the logic related to what happens when a user is muted is up the integrators. Please see the API docs here

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants