fixed ios build

This commit is contained in:
vaf 2024-10-23 11:35:45 +02:00
parent c6982a0e01
commit bbbff18610
No known key found for this signature in database
GPG key ID: 2AE9A7F02CCE35DC
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ class NotificationService: UNNotificationServiceExtension {
credentialType: tutasdk.CredentialType.internal
)
let sdk = try await Sdk(baseUrl: origin, restClient: SdkRestClient()).login(credentials: credentials)
return try await sdk.mailFacade().loadEmailByIdEncrypted(idTuple: tutasdk.IdTuple(listId: mailId[0], elementId: mailId[1]))
return try await sdk.mailFacade().loadEmailByIdEncrypted(idTuple: tutasdk.IdTupleGenerated(listId: mailId[0], elementId: mailId[1]))
}
private func getSenderOfMail(_ mail: tutasdk.Mail) -> String {
if mail.sender.name.trimmingCharacters(in: CharacterSet.whitespacesAndNewlines).isEmpty { return mail.sender.address } else { return mail.sender.name }