Fix: Rename values enum TypeName
Signed-off-by: dab246 <tdvu@linagora.com> (cherry picked from commit 34b77f26a71f5fcc23c44145decef991600a6c1e)
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user