Skip to content

fix(share): title every profile share "Chat with X on Flipcash" - #1635

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/profile-share-title
Sep 30, 2026
Merged

bmc08gt merged 1 commit into
code/cashfrom
fix/profile-share-title

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator

The profile Sharesheet title depended on where the share started. The You tab's Share and the share-profile widget titled it "Tip X"; a profile's Share shortcut used the bare display name.

Shareable.TipCard is now Shareable.Profile. It takes displayName instead of a prebuilt title, and InternalShareSheetController builds "Chat with X on Flipcash" from it, so the three callers (MenuScreenViewModel, MessengerScreen, rememberProfileShare) can't drift apart again. A null display name still shares the link with no title.

label_tipUser had no other use and no translations, so it's replaced by title_shareProfile rather than left behind.

The profile Sharesheet title depended on where the share started: the
You tab and the share-profile widget said "Tip X", and a profile's Share
shortcut used the bare display name.

Shareable.TipCard becomes Shareable.Profile, which takes the owner's
display name and builds the title in the share controller, so the three
callers can no longer disagree. label_tipUser had no other use and is
replaced by title_shareProfile.
@bmc08gt bmc08gt self-assigned this Sep 30, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 30, 2026
@bmc08gt
bmc08gt merged commit 6dc5c70 into code/cash Sep 30, 2026
3 checks passed
bmc08gt added a commit to code-payments/code-ios-app that referenced this pull request Sep 30, 2026
…927)

The four places that share a profile link each picked their own title: the
You tab and the tip card screen used "Tip <name>" (falling back to "My Tip
Card"), another user's profile used the display name or handle, and the
share-profile chat widget used the @handle or the raw URL.

TipCodeShareItem.profile(url:displayName:) now builds the title from one
localized string for all of them, and a missing display name shares the link
untitled. This matches Android (code-payments/code-android-app#1635). The
chat widget passes up the display name its lookup resolved, so the title
names the person rather than their handle. The shared links are unchanged.
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