Skip to content

feat(flipcash): tip DM origin + flipcash proto update - #1186

Merged
bmc08gt merged 2 commits into
code/cashfrom
feat/tip-dm-origin
Aug 6, 2026
Merged

feat(flipcash): tip DM origin + flipcash proto update#1186
bmc08gt merged 2 commits into
code/cashfrom
feat/tip-dm-origin

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

Re-vendors the flipcash protos at upstream HEAD and wires up the new tip-DM location signal.

Proto changes

  • messaging/v1: CashContent enum ActionVerb, field actionverb (field number 4 and enum values SENT/TIPPED preserved).
  • intent/v1: TipDmPayment gains a Location enum (TIPCARD=0 / CHAT=1) + location field.

Code changes

  • Update the network extension mappers (LocalToProtobuf / ProtobufToLocal) for the CashContent verb rename.
  • Add a TipOrigin domain enum and thread it through TipPaymentDelegate.send() so the backend learns where a tip DM was initiated:
    • out-of-chat tipping flow (TippingCoordinator) → TIPCARD
    • in-chat messenger send (ChatViewModel) → CHAT

The MessageContent.Cash.Action domain enum and its persistence/chat-ui consumers are untouched (they never referenced proto types).

Verification

Builds pass for :definitions:flipcash:models, :services:flipcash, :apps:flipcash:shared:payments, :apps:flipcash:shared:tipping, and :apps:flipcash:features:messenger.

bmc08gt added 2 commits August 6, 2026 10:20
Re-vendor flipcash protos at upstream HEAD:
- messaging/v1: rename CashContent enum Action->Verb, field action->verb
- intent/v1: add TipDmPayment.Location enum (TIPCARD/CHAT) + location field

Update the network extension mappers for the CashContent verb rename.
Report where a tip DM payment was initiated to the backend via the new
TipDmPayment.location proto field. Add a TipOrigin domain enum, thread it
through TipPaymentDelegate.send(), and set TIPCARD for the out-of-chat
tipping flow and CHAT for the in-chat messenger send.
@github-actions github-actions Bot added type: feature New functionality area: payments Payments, transfers, intents, billing area: network gRPC, connectivity, API, exchange rates labels Aug 6, 2026
@bmc08gt
bmc08gt merged commit e19a508 into code/cash Aug 6, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the feat/tip-dm-origin branch August 6, 2026 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: network gRPC, connectivity, API, exchange rates area: payments Payments, transfers, intents, billing type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant