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

bug: getUnreadCount method returns threads that belong to either disabled/deleted channels or deleted threads.

Open kennyvallejodev opened this issue 1 year ago • 1 comments

Related also to https://github.com/GetStream/stream-chat-js/issues/1322

Disabled/Deleted channels cannot be mark as read from the client (due to well... being disabled?) so i manage to workaround this to marking it as read from the server-side. As a workaround.

But deleted threads... how can i fetch a thread that is deleted? (using getThread) 😢

I keep finding issues and problems around the threads area.

kennyvallejodev avatar Jul 17 '24 17:07 kennyvallejodev

Hi @kennyvallejodev,

I was not able to reproduce this problem. Here's a sequence of actions I tried:

  1. Alice sends a message
  2. Bob starts a thread from Alice's message
  3. Alice sends a thread reply. At this point Bob has one unread thread.
  4. Alice deletes the parent message.

At this point Bob has zero unread threads, as expected.

Could you please share a sequence of actions that leads to an invalid unread thread count?

myandrienko avatar Sep 04 '24 12:09 myandrienko