Skip to content

fix(chat): long-press a cash bubble to select it - #1427

Merged
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-bubble-longpress
Sep 8, 2026
Merged

fix(chat): long-press a cash bubble to select it#1427
bmc08gt merged 1 commit into
code/cashfrom
fix/chat-bubble-longpress

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Long-pressing a cash bubble did nothing. The bubble installs a tap target of its own for token info, and a press a child clickable takes never reaches the row's combinedClickable behind it, so the transcript's selection gesture resolved only on the row padding around the bubble.

The capability model was already right: cash resolves to Reply alone, and any capability makes a bubble selectable. The bar a cash message puts up therefore already offered reply and nothing else, on a bubble no one could select.

Bubble now takes the tap and the long press through one combinedClickable, and MessageRow hands the same haptic-and-ToggleSelection lambda to the row and to the bubble, so the two cannot report different things. Both stay gated on interactive: with the backdrop up the bubble drops its gestures, as the row already drops its own.

The reply citation panel had the same defect one bubble over, since it carries the tap that jumps to the quoted message. It is fixed the same way, and can be split out if you would rather keep this to cash.

BubbleGestureTest drives both presses and both taps; each long-press assertion fails against the clickable it replaces. ChatSelectionBarTest pins what a selected cash bubble is offered, which is where reply-only lives.

Long-pressing a cash bubble did nothing. The bubble installs a tap target of its
own for token info, and a press a child clickable takes never reaches the row's
combinedClickable behind it, so the transcript's selection gesture resolved only
on the row padding around the bubble.

The capability model was already right: cash resolves to Reply alone, and any
capability makes a bubble selectable. The bar a cash message puts up therefore
already offered reply and nothing else, on a bubble no one could select.

Bubble takes the tap and the long press through one combinedClickable, and
MessageRow hands the same haptic-and-ToggleSelection lambda to the row and to
the bubble, so the two cannot report different things. Both stay gated on
`interactive`: with the backdrop up the bubble drops its gestures, as the row
already drops its own.

The reply citation panel had the same defect one bubble over, since it carries
the tap that jumps to the quoted message, and is fixed the same way.

BubbleGestureTest drives both presses and both taps; each long-press assertion
fails against the clickable it replaces. ChatSelectionBarTest pins what a
selected cash bubble is offered, which is where reply-only lives.
@bmc08gt bmc08gt self-assigned this Sep 8, 2026
@github-actions github-actions Bot added the type: fix Bug fix label Sep 8, 2026
@bmc08gt
bmc08gt merged commit 52915ae into code/cash Sep 8, 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