Page MenuHomePhabricator

[native] Call goBackToPrompt when registration fails in FullscreenSIWEPanel
ClosedPublic

Authored by ashoat on May 16 2024, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 5:15 PM
Unknown Object (File)
Fri, Oct 11, 2:53 AM
Unknown Object (File)
Fri, Oct 11, 1:43 AM
Unknown Object (File)
Oct 2 2024, 5:38 PM
Unknown Object (File)
Oct 2 2024, 5:38 PM
Unknown Object (File)
Oct 2 2024, 5:38 PM
Unknown Object (File)
Oct 2 2024, 5:38 PM
Unknown Object (File)
Aug 30 2024, 4:04 PM
Subscribers

Details

Summary

When something goes wrong during registration, we always show an Alert in registrationServerCall.

When registrationServerCall is called from FullscreenSIWEPanel, we want to call goBackToPrompt if it fails, after the user acknowledges the prompt.

Depends on D12082

Test Plan
  1. Force a client_version_unsupported failure by hardcoding it in keyserver/src/session/version.js
  2. Disable enableNewRegistrationMode
  3. Enable usingCommServicesAccessToken
  4. Try FullscreenSIWEPanel with a wallet that hasn't been registered before
  5. Verify that goBackToPrompt is called after acknowledging the Alert

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable