mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
add view avatar a11y label
This commit is contained in:
@@ -26,6 +26,17 @@ enum RoomAvatar: Equatable {
|
||||
.tombstoned
|
||||
}
|
||||
}
|
||||
|
||||
var hasURL: Bool {
|
||||
switch self {
|
||||
case let .room(_, _, url):
|
||||
return url != nil
|
||||
case let .heroes(heroes):
|
||||
return heroes.first?.avatarURL != nil
|
||||
case .tombstoned:
|
||||
return false
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A view that shows the avatar for a room, or a cluster of heroes if provided.
|
||||
|
||||
Reference in New Issue
Block a user