5720: Remove useless color, fix some issue with AvatarImage border

This commit is contained in:
MaximeE
2022-03-24 11:00:29 +01:00
parent ce0893bb37
commit 8e6ae3a667
14 changed files with 44 additions and 65 deletions
@@ -40,7 +40,7 @@ class AvatarViewModel: InjectableObject, ObservableObject {
matrixItemId: String,
displayName: String?,
colorCount: Int,
avatarSize: AvatarSize?) {
avatarSize: AvatarSize) {
let placeholderViewModel = PlaceholderAvatarViewModel(displayName: displayName,
matrixItemId: matrixItemId,
@@ -52,7 +52,7 @@ class AvatarViewModel: InjectableObject, ObservableObject {
return
}
avatarService.avatarImage(mxContentUri: mxContentUri, avatarSize: avatarSize ?? .large)
avatarService.avatarImage(mxContentUri: mxContentUri, avatarSize: avatarSize)
.sink { completion in
guard case let .failure(error) = completion else { return }
UILog.error("[AvatarService] Failed to retrieve avatar: \(error)")