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)
Thu, Apr 11, 2:49 PM
Unknown Object (File)
Apr 4 2024, 11:32 PM
Unknown Object (File)
Apr 4 2024, 11:32 PM
Unknown Object (File)
Apr 4 2024, 11:32 PM
Unknown Object (File)
Apr 4 2024, 11:31 PM
Unknown Object (File)
Apr 4 2024, 11:24 PM
Unknown Object (File)
Mar 11 2024, 8:35 PM
Unknown Object (File)
Feb 21 2024, 9:11 AM
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
Lint Not Applicable
Unit
Tests Not Applicable

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.