Skip to content

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

Open
@ayushidianapps

Description

@ayushidianapps

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew capability

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions