stream-chat-js
stream-chat-js copied to clipboard
bug: getUnreadCount method returns threads that belong to either disabled/deleted channels or deleted threads.
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.
Hi @kennyvallejodev,
I was not able to reproduce this problem. Here's a sequence of actions I tried:
- Alice sends a message
- Bob starts a thread from Alice's message
- Alice sends a thread reply. At this point Bob has one unread thread.
- 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?