Whitespace.

This commit is contained in:
Max Goedjen 2025-08-14 20:13:44 -07:00
parent 38032bbbb8
commit e62ec94099
No known key found for this signature in database

View File

@ -150,13 +150,13 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se
fileprivate var pendingPersistableStores: [String: AnySecretStore] = [:] fileprivate var pendingPersistableStores: [String: AnySecretStore] = [:]
fileprivate var pendingPersistableSecrets: [String: AnySecret] = [:] fileprivate var pendingPersistableSecrets: [String: AnySecret] = [:]
} }
fileprivate let state: OSAllocatedUnfairLock<State> = .init(uncheckedState: .init()) fileprivate let state: OSAllocatedUnfairLock<State> = .init(uncheckedState: .init())
func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) { func userNotificationCenter(_ center: UNUserNotificationCenter, openSettingsFor notification: UNNotification?) {
} }
func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async { func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async {
let category = response.notification.request.content.categoryIdentifier let category = response.notification.request.content.categoryIdentifier
switch category { switch category {
@ -190,7 +190,7 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se
return return
} }
let id = response.actionIdentifier let id = response.actionIdentifier
let (secret, store, persistOptions, callback): (AnySecret?, AnySecretStore?, TimeInterval?, State.PersistAuthentication?) = state.withLock { state in let (secret, store, persistOptions, callback): (AnySecret?, AnySecretStore?, TimeInterval?, State.PersistAuthentication?) = state.withLock { state in
guard let secret = state.pendingPersistableSecrets[secretID], guard let secret = state.pendingPersistableSecrets[secretID],
let store = state.pendingPersistableStores[storeID] let store = state.pendingPersistableStores[storeID]
@ -202,9 +202,10 @@ final class NotificationDelegate: NSObject, UNUserNotificationCenterDelegate, Se
await callback?(secret, store, persistOptions) await callback?(secret, store, persistOptions)
} }
func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification) async -> UNNotificationPresentationOptions { func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification) async -> UNNotificationPresentationOptions {
[.list, .banner] [.list, .banner]
} }
} }