HomePhabricator
Diffusion Comm b62c392ba505

[web] Caclulate encrypted media sha256

Description

[web] Caclulate encrypted media sha256

Summary:
Web counterpart of D7647.
Sometimes encountered weird errors when creating the olm.Utility multiple times so decided to cache the instance and lazy-init Olm.


Due to ENG-3845 I decided to opt out of Olm here and used WebCrypto instead

Test Plan: Added console.log in encryptMedia() and sent encrypted photo. Verified that the hash is calculated

Reviewers: atul, ashoat

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
bartekAuthored on Apr 29 2023, 7:45 AM
Reviewer
ashoat
Differential Revision
D7688: [web] Caclulate encrypted media sha256
Parents
rCOMM2f308e3abd69: Send Darwin Notification from NSE to AppDelegate so that it consumes flat fileā€¦
Branches
Unknown
Tags
Unknown