mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-30 05:06:58 +02:00
MESSENGER-4743 fix removing room avatar
This commit is contained in:
@@ -87,10 +87,11 @@ class RoomInfoBasicView: UIView {
|
||||
}
|
||||
}
|
||||
|
||||
if avatarImageView.image == nil {
|
||||
if let avatarUrl = viewData.avatarUrl {
|
||||
// bwi: update room avatar
|
||||
if let avatarUrl = viewData.avatarUrl {
|
||||
if !avatarUrl.isEmpty {
|
||||
avatarImageView.enableInMemoryCache = true
|
||||
|
||||
|
||||
avatarImageView.setImageURI(avatarUrl,
|
||||
withType: nil,
|
||||
andImageOrientation: .up,
|
||||
@@ -101,6 +102,8 @@ class RoomInfoBasicView: UIView {
|
||||
} else {
|
||||
avatarImageView.image = avatarImage
|
||||
}
|
||||
} else {
|
||||
avatarImageView.image = avatarImage
|
||||
}
|
||||
|
||||
badgeImageView.image = viewData.encryptionImage
|
||||
|
||||
Reference in New Issue
Block a user