stream-chat-react
stream-chat-react copied to clipboard
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