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)
Sun, Nov 10, 7:02 PM
Unknown Object (File)
Sun, Nov 10, 7:02 PM
Unknown Object (File)
Sun, Nov 10, 7:02 PM
Unknown Object (File)
Sun, Nov 10, 7:01 PM
Unknown Object (File)
Tue, Nov 5, 2:09 AM
Unknown Object (File)
Wed, Oct 23, 6:16 PM
Unknown Object (File)
Wed, Oct 23, 5:41 PM
Unknown Object (File)
Oct 21 2024, 12:01 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.