HomePhabricator
Diffusion Comm c2ef783d9fe2

[lib] Support encrypted media types in updateMultimediaMessageMediaAction

Description

[lib] Support encrypted media types in updateMultimediaMessageMediaAction

Summary:
This diff modifies the reducer by adding two cases to the updateMultimediaMessageMediaAction: replacing photo with encrypted_photo and video with encrypted_video. The core part is to get rid of uri and localMediaSelection and then insert holder and encryptionKey properties.

This is needed to dynamically replace local message with the encrypted message from server once upload succeeds

Depends on D7168

Test Plan: Used redux-devtools and ensured that properties are replaced as expected/

Reviewers: ashoat, atul, marcin

Reviewed By: ashoat, atul

Subscribers: tomek

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

Details

Provenance
bartekAuthored on Mar 28 2023, 2:26 PM
Reviewer
ashoat
Differential Revision
D7235: [lib] Support encrypted media types in updateMultimediaMessageMediaAction
Parents
rCOMM37e0c248975c: [native] Add function to encrypt media during media mission
Branches
Unknown
Tags
Unknown