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:
Doug
2026-02-27 15:02:42 +00:00
committed by GitHub
parent d0a9f3724e
commit 227a4056c9
22 changed files with 88 additions and 80 deletions
@@ -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),