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

bug: thread unread count persist even after a channel has been disabled

Open kennyvallejodev opened this issue 1 year ago • 10 comments

Describe the bug

A clear and concise description of what the bug is.

  • If you have a thread in a channel.
    • And this thread through a reply or a mention gives you a thread_unread_count
    • And then this channel is either disabled or deleted
    • The thread_unread_count is still there
      • And because the channel is either deleted/disabled, it doesn't let you mark it as read so you ended up pretty much with a perma unread that you cannot get rid of

To Reproduce

Steps to reproduce the behavior:

  1. Go to a Thread and do your thing (either with another user send a reply or something) so you get a thread unread count
  2. Go to the channel and mark it as disabled (or deleted it)
  3. unexpected behavior thread unread count is still there

Expected behavior

for the threads_unread_count definitely it should omit the channels that are disabled/deleted same for client.queryThreads this will fetch messages from channels that are disabled (or even parent messages that are deleted lol)

Screenshots

If applicable, add screenshots to help explain your problem.

Package version

  • stream-chat-react: ^11.14.0
  • stream-chat-js:^8.25.1

Desktop (please complete the following information):

  • OS: [e.g. iOS] MacOS
  • Browser [e.g. chrome, safari] Chrome
  • Version [e.g. 22] Version 125.0.6422.114 (Official Build) (arm64)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context

Add any other context about the problem here.

kennyvallejodev avatar Jun 03 '24 15:06 kennyvallejodev