Skip to content

Commit

Permalink
fix: Use no_avatar_default on UserProfile (#1380)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinperignon authored Apr 4, 2024
2 parents fa524ec + e0dbad7 commit 18ec4d0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/Infomaniak/ios-core",
"state" : {
"revision" : "7388c5ccc5ab177bf640968a711be2ab2f24200c"
"revision" : "f55044d2156f39a5a2251e37bfe23f596227056e"
}
},
{
Expand Down
4 changes: 2 additions & 2 deletions MailCore/Cache/AccountManager/AccountManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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()
Expand Down
2 changes: 1 addition & 1 deletion Project.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")),
Expand Down

0 comments on commit 18ec4d0

Please sign in to comment.