-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Overall unread messages counter not updating in 1:1 chats #662
Comments
Hi @oleg-hf, Can you please share a video of the issue happening? Otherwise, it is difficult to understand what the actual issue is. Thank you, |
Capturing the issue with Scenario #1 (Issue):
Additional Issue for Scenario #1:
Scenario #2 (Working as Expected):
|
Hi @oleg-hf, Thank you for the detailed description. Now it is more clear. I just did not understood this part:
Which user, A or B? And if the user opened the chat, then it means he read the message, right? Isn't this expected? We will investigate this a little more deeper as soon as we can. We will let you know once we have more details. Best, |
By "opening the chat" I meant opening the screen based on ChatChannelListView. User B hasn't opened the 1:1 chat yet. When user B reopens the ChatChannelListView, the unread badge disappears even if they haven't opened the 1:1 chat with user A. |
Hi @oleg-hf, I see, we will get back to you once we investigate this one in more detail. Thank you for the report. |
Hi @oleg-hf, I'm not able to reproduce the issue on our Demo App. Can you make sure that the users are not blocked or muted? Also, you can enable WebSocket logging and see if the data is updated from the backend correctly; if not, it might be an issue on the Backend. But first make sure the users are not muted or blocked. How to enable WS logging:
Best, |
Hi @nuno-vieira nu |
What did you do?
Added subscription for unreadCountPublisher in the ChatManager object.
What did you expect to happen?
The unreadChatMessages value should increase when a new message is sent in any channel, whether it's a group or a 1:1 chat.
What happened instead?
The unreadChatMessages value increases only for channels with three or more members. When a new message is sent in 1:1 channels, the unreadChatMessages value does not increase. Although the unread count red badge in the channel list increases, it disappears after closing and reopening the chat. The unread count red badge value is not related to the unreadChatMessages value bound to unreadCountPublisher.
GetStream Environment
GetStream Chat version:
4.63.0
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
4.63.0
iOS version:
17.5, 16.4
Swift version:
5
Xcode version:
Version 16.1 (16B40)
Device:
iPhone 13, 14
Additional context
It would be helpful to know if there are other publishers that emit values for 1:1 chats and why the unread count badge disappears when reopening the channel list. I want to emphasize that the badge in the list and the unreadCountPublisher's value for messages in group chats work as expected.
Both group chats and 1:1 chats are created using the same method:
The text was updated successfully, but these errors were encountered: