Add notification mode setting

This allows the user to switch between local and push notifications

Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Reviewed-by: William Casarin <jb55@jb55.com>
This commit is contained in:
Daniel D’Aquino
2024-05-15 16:47:16 -07:00
parent 5a68cfa448
commit 0a9bcb6189
6 changed files with 54 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ class NotificationService: UNNotificationServiceExtension {
return
}
guard should_display_notification(state: state, event: nostr_event) else {
guard should_display_notification(state: state, event: nostr_event, mode: .push) else {
// We should not display notification for this event. Suppress notification.
// contentHandler(UNNotificationContent())
// TODO: We cannot really suppress until we have the notification supression entitlement. Show the raw notification