Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public final class UserLocalStore: UserLocalStoreProtocol {
persistedUser.teamIdentifier = userInfo.teamID
persistedUser.accentColorValue = Int16(userInfo.accentID)
persistedUser.previewProfileAssetIdentifier = userInfo.previewAssetKey
persistedUser.previewProfileAssetIdentifier = userInfo.completeAssetKey
persistedUser.completeProfileAssetIdentifier = userInfo.completeAssetKey
persistedUser.emailAddress = userInfo.email
persistedUser.expiresAt = userInfo.expiresAt
if let appDescription = userInfo.appDescription, let appCategory = userInfo.appCategory {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ public struct GetUserAccountImageSourceUseCase: GetUserAccountImageSourceUseCase
account: Account
) async throws -> AccountImageSource {

// user's custom image
if let data = account.imageData, let accountImage = UIImage(data: data) {
// user's custom image (check account first, fall back to user
// in case it's not set on account yet).
if
let data = account.imageData ?? user.imageData(for: .preview),
let accountImage = UIImage(data: data) {
return .image(accountImage)
}

Expand Down