HomePhabricator
Diffusion Comm 91164d15145b

[lib] Introduce encrypted media types

Description

[lib] Introduce encrypted media types

Summary:
Linear task: ENG-386

Added types encrypted_photo and encrypted_video. The only difference is that instead of uri they contain holder and encryptionKey pair.

Added invariant in several places across codebase to indicate places that will be modified in subsequent diffs and to supress Flow errors

Test Plan: Flow doesn't complain. Web and Native don't throw, it is still possible to send unencrypted media messages

Reviewers: atul, ashoat, marcin

Reviewed By: ashoat

Subscribers: tomek

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

Details

Provenance
bartekAuthored on Mar 30 2023, 11:22 AM
Reviewer
ashoat
Differential Revision
D7168: [lib] Introduce encrypted media types
Parents
rCOMM7c41c43a1737: [native] switch all user avatars to use UserAvatar component instead of Avatar
Branches
Unknown
Tags
Unknown