diff --git a/NucleicRemote/NucleicRemote/Notifications.swift b/NucleicRemote/NucleicRemote/Notifications.swift index 228a539..fb2d0dc 100644 --- a/NucleicRemote/NucleicRemote/Notifications.swift +++ b/NucleicRemote/NucleicRemote/Notifications.swift @@ -121,7 +121,7 @@ final class NotificationRouter: NSObject { center.getDeliveredNotifications { delivered in let stale = delivered.map(\.request.identifier).filter { $0.hasPrefix("approval-") } guard !stale.isEmpty else { return } - center.removeDeliveredNotifications(withIdentifiers: stale) + UNUserNotificationCenter.current().removeDeliveredNotifications(withIdentifiers: stale) } }