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
F3364744: D6883.id23083.diff
Mon, Nov 25, 5:01 AM
F3361844: D6883.id23091.diff
Sun, Nov 24, 7:45 PM
Unknown Object (File)
Sat, Nov 23, 6:04 PM
Unknown Object (File)
Thu, Nov 21, 7:41 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:02 PM
Unknown Object (File)
Sun, Nov 10, 7:01 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
Branch
master
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

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.