Skip to content

fix(messenger): head every group with its invite card - #1581

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/group-invite-card-design
Sep 28, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/group-invite-card-design

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

A group with more than one member opened on the old boxed ChatInfoCard; only a solo group got the invite card (node 10330:19164). The transcript header now draws GroupInviteLinkCard for every group, with "Invite People" whenever the viewer is a member.

  • A viewer who hasn't joined has no invite link to share, so their card has no button. GroupInviteLinkCard.ctaLabel is nullable for this: null leaves the button out and the card sizes to its content.
  • State.showsGroupInviteCard is now offersGroupInvite, because it decides the button, not the card. ChatViewModelStateTest covers a solo group, a two-member group, a non-member, unknown membership and a DM.
  • DM headers keep ChatInfoCard.

@bmc08gt bmc08gt self-assigned this Sep 28, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 28, 2026
A group with more than one member still opened on the old boxed
ChatInfoCard; only a solo group got the invite card (node 10330:19164).
The header now draws GroupInviteLinkCard for every group, with
"Invite People" whenever the viewer is a member. A viewer who hasn't
joined has no invite link to share, so their card has no button.

GroupInviteLinkCard's ctaLabel is nullable to allow that: null leaves
the button out and the card is as tall as its content.
State.showsGroupInviteCard becomes offersGroupInvite, since it now
decides the button rather than the card.
@bmc08gt
bmc08gt force-pushed the fix/group-invite-card-design branch from 50305d4 to 6b8c7e6 Compare September 28, 2026 11:56
@bmc08gt
bmc08gt merged commit 059570d into code/cash Sep 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant