stream-chat-react icon indicating copy to clipboard operation
stream-chat-react copied to clipboard

bug:Unread count of channel gets removed when channel is hidden or shown

Open ayushidianapps opened this issue 1 year ago • 7 comments

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 avatar Apr 12 '23 05:04 ayushidianapps