Page MenuHomePhabricator

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

Authored by atul on Feb 9 2023, 12:53 PM.
Tags
None
Referenced Files
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
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:40 AM
Unknown Object (File)
Fri, Nov 8, 10:33 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
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

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

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

484

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

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.