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 of channel gets removed when channel is hidden or shown #1990

Open
ayushidianapps opened this issue Apr 12, 2023 · 7 comments
Labels
feature New capability

Comments

@ayushidianapps
Copy link

Describe the bug

When we hide the channel using await channel.hide(userId) or show the hidden channel using await channel.show(userId), the unread count of that channel gets removed

To Reproduce

Steps to reproduce the behavior:

  1. Hide a channel that has some unread count
  2. Fetch hidden channels
  3. The unread count of that channel should have been removed

Expected behavior

The unread count should not change when we hide or show the channel as it has got nothing to do with the unread count that was already there in the channel.

Screenshots
Screenshot 2023-04-12 at 10 40 54 AM
Screenshot 2023-04-12 at 10 41 18 AM
Screenshot 2023-04-12 at 10 41 52 AM

Package version

  • stream-chat-react: 10.4.2
@ayushidianapps ayushidianapps added bug Something isn't working status: unconfirmed labels Apr 12, 2023
@MartinCupela
Copy link
Contributor

@ayushidianapps thank you for reporting this. It seems that once the channel.hide() call is executed, the channel is marked as read on the back-end side. We are trying to verify this hypothesis.

@MartinCupela MartinCupela added status:confirmed Described issue has been reproduced by the repo maintainer and removed status: unconfirmed labels Apr 18, 2023
@ayushidianapps
Copy link
Author

ayushidianapps commented Apr 19, 2023 via email

@ayushidianapps
Copy link
Author

@MartinCupela any update on this issue?

@MartinCupela
Copy link
Contributor

@ayushidianapps the back-end team confirmed, that this is the intended behavior. I will mark this issue as a feature request.

@MartinCupela MartinCupela added feature New capability and removed bug Something isn't working status:confirmed Described issue has been reproduced by the repo maintainer labels Apr 28, 2023
@ayushidianapps
Copy link
Author

ayushidianapps commented Apr 28, 2023 via email

@MartinCupela
Copy link
Contributor

@ayushidianapps Feature requests are evaluated by the Stream's product team. I cannot speak on behalf of the team. Not every feature request is automatically considered to be implemented.

@ayushidianapps
Copy link
Author

ayushidianapps commented Apr 28, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New capability
Projects
None yet
Development

No branches or pull requests

2 participants