Skip to content
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

Unread flag gets reset after refreshing the channels #1919

Closed
1 task done
gadzhov opened this issue May 14, 2024 · 2 comments
Closed
1 task done

Unread flag gets reset after refreshing the channels #1919

gadzhov opened this issue May 14, 2024 · 2 comments
Labels
bug Something isn't working Stale

Comments

@gadzhov
Copy link

gadzhov commented May 14, 2024

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?

  1. When a distinct channel is created (without providing an id), unread flag is getting reset after doing channels refresh.
Recording.2024-05-14.165307.mp4
  1. 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.
Update: I have found that the issues only happens on recreated 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

  • I agree to follow this project's Code of Conduct
@gadzhov gadzhov added the bug Something isn't working label May 14, 2024
Copy link

github-actions bot commented Jun 9, 2024

This issue is stale because it has been open for 20 days with no activity.

@github-actions github-actions bot added the Stale label Jun 9, 2024
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Stale
Projects
None yet
Development

No branches or pull requests

1 participant