migrate GroupChatJoinDialog to count prop

Finishes the invite-preview cleanup flagged in review: GroupChatJoinDialog was
the fourth surface hand-padding the profiles array, and its
Array(memberCount - 1) lacked the zero guard the others had (RangeError if
memberCount is 0). Using the count prop removes that latent edge case.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-06-12 16:02:43 +03:00
parent c65698d5f1
commit c1cb0d1f7c
@@ -315,10 +315,8 @@ function GroupChatJoinDialogContent({code}: {code?: string}) {
<>
<View style={[a.w_full, a.py_lg, a.align_center]}>
<AvatarBubbles
profiles={[
joinLinkPreview.owner,
...Array(joinLinkPreview.memberCount - 1).fill(undefined),
]}
profiles={[joinLinkPreview.owner]}
count={joinLinkPreview.memberCount}
self
size={135}
/>