Skip to content

fix(chat): stop naming the reserve in the cash preview - #1376

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-preview-dollars-suffix
Aug 31, 2026
Merged

fix(chat): stop naming the reserve in the cash preview#1376
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-preview-dollars-suffix

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 31, 2026

Copy link
Copy Markdown
Collaborator

A cash message preview appended the token name whenever the message carried one, so a Dollars transfer read "You sent $1.00 of Dollars". USDF is branded "Dollars" and the formatted amount already carries the dollar sign, so the suffix repeats the unit it just printed.

formatPreview in ChatSummaryMapping took content.tokenName unconditionally, falling back to the mint lookup, and wrapped any non-blank result in label_chat_preview_cash_suffix ("%1$s of %2$s"). The reserve mint now resolves to an empty name, which drops the label to the bare formatted amount. Every other token still gets named, since "$1.00 of Waylon" is the only thing that says which currency moved.

This is the same rule the swap processing screen already applies through isConvertingToDollars.

MessageBubble's CashBubble still renders the icon-and-name header for the reserve. That reads as a token identity chip rather than a sentence, so it is left alone here.

A cash message preview appended the token name whenever the message carried
one, so a Dollars transfer read "You sent $1.00 of Dollars". USDF is branded
"Dollars", and the formatted amount already carries the dollar sign, so the
suffix repeats the unit it just printed.

The reserve mint now resolves to an empty name, which drops the preview to the
bare amount. Every other token still gets named, since "$1.00 of Waylon" is the
only thing that says which currency moved.

Same rule the swap processing screen applies through `isConvertingToDollars`.
@bmc08gt bmc08gt self-assigned this Aug 31, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Aug 31, 2026
@bmc08gt
bmc08gt merged commit a18baac into code/cash Aug 31, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the fix/chat-preview-dollars-suffix branch September 5, 2026 19:12
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