Skip to content

feat(chat): scaffold flipcash2 0.23.0 contract - #1157

Merged
bmc08gt merged 2 commits into
mainfrom
feat/flipcash2-0.23.0-scaffold
Oct 29, 2026
Merged

bmc08gt merged 2 commits into
mainfrom
feat/flipcash2-0.23.0-scaffold

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Oct 29, 2026 •

Copy link
Copy Markdown
Collaborator

Scaffolds the flipcash2 0.23.0 contract and bumps flipcash2-client-protocol from 0.22.0 to 0.23.0, with the pin and Package.resolved in one commit. Client PR: code-payments/flipcash2-client-protocol#31

  • Source break fixed: boostedReaction moved into oneof context, so hasBoostedReaction is gone. Activity+Metadata.swift switches on context instead.
  • SendTestPush: PushService.sendTestPush and FlipClient.sendTestPush(owner:), with ErrorSendTestPush.
  • EditChat rules: rules: ConversationRules? = nil through FlipClient.editChat. ErrorEditChat gains .invalidRules and .rulesNotSatisfied; the wire-number test covers 7 and 8.
  • RulesChanged: ConversationStreamEvent.rulesChanged, applied by ConversationStore.applyRulesChanged and persisted by ConversationController.
  • Payment request updates: ConversationStreamEvent.paymentRequestsChanged carries DecodedPaymentRequestUpdate. Applying them is a TODO, since nothing holds request state yet.
  • RequestedPayment: Activity.requestedPayment. It is not persisted: storing it needs a new table and a schema bump, so it reads back nil from the database.

No UI. Tests added: decodesRulesChanged and decodesPaymentRequestUpdates.

Build against the unreleased contract via the local override; the 0.22.0
pin is unchanged.

- push: SendTestPush service call, ErrorSendTestPush and FlipClient.sendTestPush
- chat: EditChat takes full replacement rules; INVALID_RULES and
  RULES_NOT_SATISFIED map to ErrorEditChat cases
- chat: MetadataUpdate.RulesChanged decodes to ConversationStreamEvent.rulesChanged
  and updates the store and persisted conversation
- events: ChatUpdate.payment_request_updates decode to
  DecodedPaymentRequestUpdate; applying them to request state is a TODO
- activity: Activity.requestedPayment from the new oneof context; boosted
  reaction now reads the oneof instead of hasBoostedReaction
@bmc08gt
bmc08gt force-pushed the feat/flipcash2-0.23.0-scaffold branch from a993c9d to 59e98f1 Compare October 29, 2026 04:17
@bmc08gt
bmc08gt merged commit 12ea446 into main Oct 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant