bug:Unread count of channel gets removed when channel is hidden or shown
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:
- Hide a channel that has some unread count
- Fetch hidden channels
- 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

Package version
- stream-chat-react: 10.4.2
@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.
Please let us know if it is fixed as we have our production release this week.
On Tue, 18 Apr 2023 at 18:39, MartinCupela @.***> wrote:
@ayushidianapps https://github.com/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.
— Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react/issues/1990#issuecomment-1513105795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUMSW55BCV5AMJZUGV645G3XB2HAJANCNFSM6AAAAAAW3FDEB4 . You are receiving this because you were mentioned.Message ID: @.***>
@MartinCupela any update on this issue?
@ayushidianapps the back-end team confirmed, that this is the intended behavior. I will mark this issue as a feature request.
Okay, can you let us know when you are planning to implement this feature?
On Fri, 28 Apr 2023 at 12:37, MartinCupela @.***> wrote:
@ayushidianapps https://github.com/ayushidianapps the back-end team confirmed, that this is the intended behavior. I will mark this issue as a feature request.
— Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react/issues/1990#issuecomment-1527094218, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUMSW56VIMEGJYDSBHNWKMLXDNUCRANCNFSM6AAAAAAW3FDEB4 . You are receiving this because you were mentioned.Message ID: @.***>
@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.
Alright, thanks for the clarification.
On Fri, 28 Apr 2023 at 12:58, MartinCupela @.***> wrote:
@ayushidianapps https://github.com/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.
— Reply to this email directly, view it on GitHub https://github.com/GetStream/stream-chat-react/issues/1990#issuecomment-1527115662, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUMSW542LMWLNZ6NHTXVBZDXDNWRRANCNFSM6AAAAAAW3FDEB4 . You are receiving this because you were mentioned.Message ID: @.***>