GetStream / stream-chat-js

JS / Browser Client - Build Chat with GetStream.io
https://getstream.io/chat/
Other
178 stars 77 forks source link

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

Open kennyvallejodev opened 2 months ago

kennyvallejodev commented 2 months ago

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.

myandrienko commented 1 week ago

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?