Fix invite card avatar pile not reflecting member count (#10891)

This commit is contained in:
Samuel Newman
2026-06-13 00:57:31 +03:00
committed by GitHub
parent 1f90a4dfd9
commit 714b1e205d
5 changed files with 25 additions and 20 deletions
+2 -6
View File
@@ -103,12 +103,8 @@ export function JoinRequest({setScreenState}: Props) {
ChatBskyGroupDefs.isJoinLinkPreviewView(joinLinkPreview) ? (
<Wrapper>
<AvatarBubbles
profiles={[
joinLinkPreview.owner,
...Array(
Math.min(3, Math.max(0, joinLinkPreview.memberCount - 1)),
).fill(undefined),
]}
profiles={[joinLinkPreview.owner]}
count={joinLinkPreview.memberCount}
size={135}
/>
<View style={[a.gap_2xs]}>
@@ -63,12 +63,8 @@ export function OutgoingRequestListItem({
(hovered || pressed || focused) && t.atoms.bg_contrast_25,
]}>
<AvatarBubbles
profiles={[
convoView?.owner ?? undefined,
...Array(
Math.min(3, Math.max(0, convoView.memberCount - 1)),
).fill(undefined),
]}
profiles={[convoView.owner]}
count={convoView.memberCount}
size={48}
/>
<View style={[a.flex_1]}>