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

fix: sync stores to match context on mark-all-as-read #7

Merged
merged 2 commits into from
Oct 13, 2022

Conversation

smeijer
Copy link
Member

@smeijer smeijer commented Oct 13, 2022

This pull ensures that when having multiple stores, of which one holds read notifications and another unread, notifications are properly synchronised when clicking "mark all read".

Before this change, clicking "mark all read" in an inbox that only shows unread notifications ({ read: false }), would not remove those notifications from the current tab. Nor would they appear in a tab thats configured with { read: true }.

Note that the implementation is still optimistic. Meaning, we move all notifications around, regardless of other parameters like category or custom attribute matchers.

@smeijer smeijer self-assigned this Oct 13, 2022
@smeijer smeijer added the bug Something isn't working label Oct 13, 2022
@smeijer smeijer merged commit 7712e28 into main Oct 13, 2022
@smeijer smeijer deleted the feature/fix-mark-all-read-sync branch October 13, 2022 09:22
@github-actions github-actions bot mentioned this pull request Oct 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant