mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 17:42:45 +02:00
#1098 - Avatar view model: stop requesting avatars for empty URIs.
This commit is contained in:
@@ -47,7 +47,10 @@ class AvatarViewModel: InjectableObject, ObservableObject {
|
||||
stableColorIndex(matrixItemId: matrixItemId, colorCount: colorCount)
|
||||
)
|
||||
|
||||
guard let mxContentUri = mxContentUri else { return }
|
||||
guard let mxContentUri = mxContentUri, mxContentUri.count > 0 else {
|
||||
return
|
||||
}
|
||||
|
||||
avatarService.avatarImage(mxContentUri: mxContentUri, avatarSize: avatarSize)
|
||||
.sink { completion in
|
||||
guard case let .failure(error) = completion else { return }
|
||||
|
||||
Reference in New Issue
Block a user