diff --git a/.package.resolved b/.package.resolved index ca07bf837..e64f32597 100644 --- a/.package.resolved +++ b/.package.resolved @@ -42,7 +42,7 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/Infomaniak/ios-core", "state" : { - "revision" : "7388c5ccc5ab177bf640968a711be2ab2f24200c" + "revision" : "f55044d2156f39a5a2251e37bfe23f596227056e" } }, { diff --git a/MailCore/Cache/AccountManager/AccountManager.swift b/MailCore/Cache/AccountManager/AccountManager.swift index f9bf70ea4..55c968afb 100644 --- a/MailCore/Cache/AccountManager/AccountManager.swift +++ b/MailCore/Cache/AccountManager/AccountManager.swift @@ -239,7 +239,7 @@ public final class AccountManager: RefreshTokenDelegate, ObservableObject { private func createAndSetCurrentAccount(token: ApiToken) async throws -> Account { let apiFetcher = MailApiFetcher(token: token, delegate: self) - let user = try await apiFetcher.userProfile(dateFormat: .iso8601) + let user = try await apiFetcher.userProfile(ignoreDefaultAvatar: true, dateFormat: .iso8601) let mailboxesResponse = try await apiFetcher.mailboxes() guard !mailboxesResponse.isEmpty else { @@ -278,7 +278,7 @@ public final class AccountManager: RefreshTokenDelegate, ObservableObject { } let apiFetcher = getApiFetcher(for: account.userId, token: token) - let user = try await apiFetcher.userProfile(dateFormat: .iso8601) + let user = try await apiFetcher.userProfile(ignoreDefaultAvatar: true, dateFormat: .iso8601) account.user = user try? await featureFlagsManager.fetchFlags() diff --git a/Project.swift b/Project.swift index 7aef282c4..09fc28bcd 100644 --- a/Project.swift +++ b/Project.swift @@ -28,7 +28,7 @@ let project = Project(name: "Mail", .package(url: "https://github.com/Infomaniak/swift-concurrency", .upToNextMajor(from: "0.0.5")), .package( url: "https://github.com/Infomaniak/ios-core", - .revision("7388c5ccc5ab177bf640968a711be2ab2f24200c") + .revision("f55044d2156f39a5a2251e37bfe23f596227056e") ), .package(url: "https://github.com/Infomaniak/ios-core-ui", .upToNextMajor(from: "7.0.0")), .package(url: "https://github.com/Infomaniak/ios-notifications", .upToNextMajor(from: "5.0.0")),