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: Only update notifications that are not already marked as read #3202

Merged
merged 1 commit into from
Dec 14, 2021

Conversation

imorland
Copy link
Member

Currently markAllAsRead updates the read_at column with the current timestamp for all notifications for a given user. That sucks, especially on a forum which may have a large number of notifications for each user.

We only need to mark notifications as read for those which are not already marked as such.

@askvortsov1 askvortsov1 added this to the 1.2 milestone Dec 14, 2021
@SychO9 SychO9 merged commit 25dc26b into master Dec 14, 2021
@SychO9 SychO9 deleted the im/notifications branch December 14, 2021 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants