Page MenuHomePhabricator

[native] Include `primaryIdentityPublicKey` in `register` request
ClosedPublic

Authored by atul on Feb 9 2023, 12:53 PM.
Tags
None
Referenced Files
F3248907: D6675.id22509.diff
Fri, Nov 15, 11:20 AM
F3248906: D6675.id22508.diff
Fri, Nov 15, 11:19 AM
F3248905: D6675.id22316.diff
Fri, Nov 15, 11:19 AM
F3248350: D6675.diff
Fri, Nov 15, 9:30 AM
Unknown Object (File)
Sun, Nov 10, 6:41 AM
Unknown Object (File)
Sun, Nov 10, 6:41 AM
Unknown Object (File)
Sun, Nov 10, 6:41 AM
Unknown Object (File)
Sun, Nov 10, 6:41 AM
Subscribers
None

Details

Summary

Include primaryIdentityPublicKey in register request from native.


Depends on D6674

Test Plan

Set breakpoint in accountCreationResponder:

9b0832.png (450×2 px, 181 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Feb 9 2023, 12:54 PM
atul edited the test plan for this revision. (Show Details)
ashoat added inline comments.
native/account/register-panel.react.js
333 ↗(On Diff #22487)

Nit – I would destructure this and assign to a local to avoid repeating this.props.

484 ↗(On Diff #22487)

Hmm... looks like this will add a spinner to the button, which is weird since it sort of implies that the request has been sent. It also blocks the TextInput, which isn't really necessary... I think we would just want to disable the button

(Probably not a big deal since commCoreModule.getUserPublicKey should presumably be quite fast)

This revision is now accepted and ready to land.Feb 13 2023, 11:04 AM
native/account/register-panel.react.js
484 ↗(On Diff #22487)

Ah, I remember intending to add a disabled prop to PanelButton... I'll update this diff in place. Will also sneak in corresponding change to LoginPanel.

disable button instead of setting loadingStatus to loading if primaryIdentityPublicKey is null or undefined

This revision was landed with ongoing or failed builds.Feb 13 2023, 4:22 PM
This revision was automatically updated to reflect the committed changes.