mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Make sure the inviter's avatar is hidden in the JoinRoomScreen. (#5151)
* Make sure the inviter's avatar is hidden in the JoinRoomScreen. * Update preview tests to use an inviter that has an avatar… * Also hide avatars in the Space invite avatar pile.
This commit is contained in:
@@ -11,6 +11,7 @@ import SwiftUI
|
||||
|
||||
struct JoinedMembersBadgeView: View {
|
||||
let heroes: [UserProfileProxy]
|
||||
var shouldHideAvatars = false
|
||||
let joinedCount: Int
|
||||
|
||||
let mediaProvider: MediaProviderProtocol?
|
||||
@@ -43,7 +44,7 @@ struct JoinedMembersBadgeView: View {
|
||||
var heroesFacePile: some View {
|
||||
HStack(spacing: -8) {
|
||||
ForEach(heroes.prefix(3).reversed()) { hero in
|
||||
LoadableAvatarImage(url: hero.avatarURL,
|
||||
LoadableAvatarImage(url: shouldHideAvatars ? nil : hero.avatarURL,
|
||||
name: hero.displayName,
|
||||
contentID: hero.userID,
|
||||
avatarSize: .user(on: .spaceHeader),
|
||||
|
||||
Reference in New Issue
Block a user