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]}> <View style={[a.w_full, a.py_lg, a.align_center]}>
<AvatarBubbles <AvatarBubbles
profiles={[ profiles={[joinLinkPreview.owner]}
joinLinkPreview.owner, count={joinLinkPreview.memberCount}
...Array(joinLinkPreview.memberCount - 1).fill(undefined),
]}
self self
size={135} size={135}
/> />