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 2 years 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

@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 avatar Apr 18 '23 13:04 MartinCupela

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: @.***>

ayushidianapps avatar Apr 19 '23 03:04 ayushidianapps

@MartinCupela any update on this issue?

ayushidianapps avatar Apr 25 '23 04:04 ayushidianapps

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

MartinCupela avatar Apr 28 '23 07:04 MartinCupela

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 avatar Apr 28 '23 07:04 ayushidianapps

@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.

MartinCupela avatar Apr 28 '23 07:04 MartinCupela

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: @.***>

ayushidianapps avatar Apr 28 '23 08:04 ayushidianapps