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)
Fri, Dec 13, 7:13 AM
Unknown Object (File)
Fri, Nov 29, 4:34 PM
Unknown Object (File)
Mon, Nov 25, 10:13 PM
Unknown Object (File)
Mon, Nov 25, 5:01 AM
Unknown Object (File)
Nov 24 2024, 7:45 PM
Unknown Object (File)
Nov 23 2024, 6:04 PM
Unknown Object (File)
Nov 21 2024, 7:41 PM
Unknown Object (File)
Nov 10 2024, 7:02 PM
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
No Lint Coverage
Unit
No Test Coverage

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.