Fix: Rename values enum TypeName

Signed-off-by: dab246 <tdvu@linagora.com>
(cherry picked from commit 34b77f26a71f5fcc23c44145decef991600a6c1e)
This commit is contained in:
dab246
2024-01-10 10:20:50 +07:00
committed by Dat Vu
parent 5f2b867b0d
commit e23e468c2b
3 changed files with 3 additions and 5 deletions
+1 -3
View File
@@ -45,7 +45,7 @@ class NotificationService: UNNotificationServiceExtension {
guard let currentAccountId = mapStateChanges.keys.first,
let keychainSharingSession = keychainController.retrieveSharingSessionFromKeychain(accountId: currentAccountId),
let listStateOfAccount = mapStateChanges[currentAccountId],
let newEmailState = listStateOfAccount[TypeName.EmailDelivery],
let newEmailState = listStateOfAccount[TypeName.emailDelivery],
let oldEmailState = keychainSharingSession.emailState,
newEmailState != oldEmailState,
keychainSharingSession.tokenOIDC != nil || keychainSharingSession.basicAuth != nil else {
@@ -96,8 +96,6 @@ class NotificationService: UNNotificationServiceExtension {
return self.notify()
}
}
}
)
}