stream-chat-flutter
stream-chat-flutter copied to clipboard
Unread flag gets reset after refreshing the channels
Which packages are you using?
stream_chat_flutter
On what platforms did you experience the issue?
Android, Web
What version are you using?
stream_chat_flutter - 7.2.0
What happened?
- When a distinct channel is created (without providing an id), unread flag is getting reset after doing channels refresh.
https://github.com/GetStream/stream-chat-flutter/assets/18680832/bd2f2cea-6298-4e38-a58e-c127c7fdf722
- When listening for an unreadChannelsStream, the event emits 0 for distinct channels even there are unread messages.
StreamChat.of(context).client.state.unreadChannelsStream.listen((event) { print(event); // 0 });
Both issues don't happen with not distinct channels.
Steps to reproduce
1. Create a distinct channel
2. Send a message
4. Use the other user
5. Channel should have an unread flag
6. Pull down to refresh
7. Unread flag is gone
Supporting info to reproduce
No response
Relevant log output
No response
Flutter analyze output
No response
Flutter doctor output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct