Skip to content

Commit

Permalink
[ios] fix wrong parameter label for rest client
Browse files Browse the repository at this point in the history
  • Loading branch information
ganthern committed Nov 29, 2024
1 parent 69429c2 commit edb6dcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class NotificationService: UNNotificationServiceExtension {
encryptedPassphraseKey: encryptedPassphraseKey.data,
credentialType: tutasdk.CredentialType.internal
)
let sdk = try await Sdk(baseUrl: origin, restClient: SdkRestClient()).login(credentials: credentials)
let sdk = try await Sdk(baseUrl: origin, rawRestClient: SdkRestClient()).login(credentials: credentials)
return try await sdk.mailFacade().loadEmailByIdEncrypted(idTuple: tutasdk.IdTupleGenerated(listId: mailId[0], elementId: mailId[1]))
}
private func getSenderOfMail(_ mail: tutasdk.Mail) -> String {
Expand Down
2 changes: 1 addition & 1 deletion app-ios/tutanota/Sources/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public let TUTA_MAIL_INTEROP_SCHEME = "tutamail"
encryptedPassphraseKey: encryptedPassphraseKey.data,
credentialType: tutasdk.CredentialType.internal
)
let sdk = try await Sdk(baseUrl: origin, restClient: SdkRestClient()).login(credentials: credentials)
let sdk = try await Sdk(baseUrl: origin, rawRestClient: SdkRestClient()).login(credentials: credentials)
let mail = IdTupleGenerated(listId: mailId[0], elementId: mailId[1])
switch actionIdentifier {
case MAIL_TRASH_ACTION: try await sdk.mailFacade().trashMails(mails: [mail])
Expand Down

0 comments on commit edb6dcf

Please sign in to comment.