Page MenuHomePhabricator

[web] Dispatch `setNotificationIdentityKeys` in `LoginForm`
ClosedPublic

Authored by atul on Feb 23 2023, 6:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 6:42 AM
Unknown Object (File)
Fri, Dec 6, 2:15 AM
Unknown Object (File)
Mon, Dec 2, 11:39 AM
Unknown Object (File)
Mon, Dec 2, 10:46 AM
Unknown Object (File)
Fri, Nov 29, 6:25 AM
Unknown Object (File)
Nov 25 2024, 8:46 PM
Unknown Object (File)
Nov 25 2024, 8:42 PM
Unknown Object (File)
Nov 25 2024, 8:34 PM
Subscribers
None

Details

Summary

Create notificationAccount, get identity_keys(), and dispatch setNotificationIdentityKeys action to store in Redux cryptoStore.

Note that all the logic on whether to eg enable login button, etc is still only dependent on identityED25519... this will be addressed in subsequent diffs.


Depends on D6877

Test Plan

Actions are being dispatched correctly and cryptoStore in Redux is as expected:

d2fe81.png (506×1 px, 113 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/account/log-in-form.react.js
55–62 ↗(On Diff #23042)

We have two separate actions here... setPrimaryIdentityKeys and setNotificationIdentityKeys instead of a single setCryptoStore.

I wasn't sure how coupled we wanted the two to be/if they'd need to be changed independently in the future... so I kept them separate. Can always "merge" the actions in the future?

atul published this revision for review.Feb 23 2023, 6:59 PM
ashoat added inline comments.
web/account/log-in-form.react.js
55–62 ↗(On Diff #23042)

I imagine these will be coupled long-term, but not sure how much this matters and don't want to block this from landing right now

web/redux/crypto-store-reducer.js
13 ↗(On Diff #23042)

Nit: add a newline after this

This revision is now accepted and ready to land.Feb 24 2023, 8:15 AM
This revision was landed with ongoing or failed builds.Feb 24 2023, 2:39 PM
This revision was automatically updated to reflect the committed changes.