stream-chat-js
stream-chat-js copied to clipboard
bug: thread unread count persist even after a channel has been disabled
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_countis still there- And because the channel is either deleted/disabled, it doesn't let you
mark it as readso you ended up pretty much with a perma unread that you cannot get rid of
- And because the channel is either deleted/disabled, it doesn't let you
- And this thread through a reply or a mention gives you a
To Reproduce
Steps to reproduce the behavior:
- Go to a Thread and do your thing (either with another user send a reply or something) so you get a thread unread count
- Go to the channel and mark it as disabled (or deleted it)
- 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.