Page MenuHomePhabricator

[web] Pickle `OLMAccount`s and add to Redux `CryptoStore`
ClosedPublic

Authored by atul on Feb 24 2023, 12:43 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 4, 11:32 PM
Unknown Object (File)
Thu, Apr 4, 11:32 PM
Unknown Object (File)
Thu, Apr 4, 11:32 PM
Unknown Object (File)
Thu, Apr 4, 11:31 PM
Unknown Object (File)
Thu, Apr 4, 11:24 PM
Unknown Object (File)
Feb 21 2024, 9:13 AM
Unknown Object (File)
Feb 21 2024, 9:13 AM
Unknown Object (File)
Feb 21 2024, 9:13 AM
Subscribers
None

Details

Summary

We pickle the OLMAccounts and add them to Redux CryptoStore so the olm.Account can be "unpickled" later for eg signing a message.


Depends on D6882

Test Plan

Pickled accounts appear in Redux CryptoStore as expected:

8bc940.png (1×2 px, 522 KB)

(Yes, there are four separate actions being dispatched at the moment. Once things are working end-to-end we can refactor/consolidate as needed.)

"Unpickling" will be tested in subsequent diffs.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

atul published this revision for review.Feb 24 2023, 12:44 AM
atul edited the summary of this revision. (Show Details)
atul added inline comments.
web/account/log-in-form.react.js
49–91 ↗(On Diff #23047)

This useEffect is getting massive. Going to extract this out into a hook in a later diff once things are working end-to-end.

atul edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Feb 24 2023, 8:19 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.