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

Don't deliver local notifications when user status is DND #966

Merged
merged 1 commit into from
Nov 2, 2022

Conversation

SystemKeeper
Copy link
Collaborator

Fixes #962
Ref nextcloud/notifications#724

When using local notifications as a fallback, we still need to respect the users DND status.

Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
@SystemKeeper
Copy link
Collaborator Author

I just noticed that this PR inadvertently fixes a problem introduced in 95dbc10. The moved check should've checked for serverNotification.notificationType == kNCNotificationTypeChat instead of serverNotification.notificationType != kNCNotificationTypeChat.

@Ivansss Ivansss merged commit 82e2193 into master Nov 2, 2022
@Ivansss Ivansss deleted the local-notifications-respect-dnd branch November 2, 2022 10:59
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.

Respect "DND" when fetching notifications in a background task
2 participants