HomePhabricator
Diffusion Comm 6151beabc857

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

Tags
None
Referenced Files
F399948: 8bc940.png
Feb 24 2023, 2:39 PM
File Not Attached
Subscribers
None

Description

[web] Pickle OLMAccounts and add to Redux CryptoStore

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.

Reviewers: ashoat, tomek, marcin

Reviewed By: ashoat

Differential Revision: https://phab.comm.dev/D6883

Details

Provenance
atulAuthored on Feb 24 2023, 12:39 AM
Reviewer
ashoat
Differential Revision
D6883: [web] Pickle `OLMAccount`s and add to Redux `CryptoStore`
Parents
rCOMM4857a25e20f0: [web] Add `PickledOLMAccount`s to Redux `CryptoStore`
Branches
Unknown
Tags
Unknown