Skip to content

feat(contacts): add idempotent linkForPayment call on app foreground#807

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/link-for-payment-coordinator
May 29, 2026
Merged

feat(contacts): add idempotent linkForPayment call on app foreground#807
bmc08gt merged 1 commit into
code/cashfrom
feat/link-for-payment-coordinator

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 29, 2026

Ensures users with verified phone numbers are linked for payment
server-side, even if they connected before the LinkForPayment RPC
existed. Fires once per account lifetime, persisted via DataStore.

  • Add linkForPaymentIfNeeded() to ContactCoordinator with DataStore guard
  • Call from RealSessionController.onAppInForeground() (gated on canAccessAuthenticatedApis)
  • Remove OnboardingViewModel (session controller covers the login path)
  • Clear persisted flag on logout via reset()

@bmc08gt bmc08gt self-assigned this May 29, 2026
@github-actions github-actions Bot added type: feature New functionality area: network gRPC, connectivity, API, exchange rates area: session area: onboarding and removed type: feature New functionality labels May 29, 2026
Ensures users with verified phone numbers are linked for payment
server-side, even if they connected before the LinkForPayment RPC
existed. Fires once per account lifetime, persisted via DataStore.

- Add linkForPaymentIfNeeded() to ContactCoordinator with DataStore guard
- Call from RealSessionController.onAppInForeground() (gated on canAccessAuthenticatedApis)
- Remove OnboardingViewModel (session controller covers the login path)
- Clear persisted flag on logout via reset()
@bmc08gt bmc08gt force-pushed the feat/link-for-payment-coordinator branch from d359ac0 to ec3a77f Compare May 29, 2026 22:40
@github-actions github-actions Bot added the type: feature New functionality label May 29, 2026
@bmc08gt bmc08gt merged commit 9d31e99 into code/cash May 29, 2026
3 checks passed
@bmc08gt bmc08gt deleted the feat/link-for-payment-coordinator branch May 29, 2026 22:41
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: onboarding area: session type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant