HomePhabricator
Diffusion Comm ff82d0f616b4

[keyserver] Introduce `getMediaMessageServerDBContentsFromMedia(...)`

Description

[keyserver] Introduce getMediaMessageServerDBContentsFromMedia(...)

Summary:
Pull out common logic from multimedia-message-spec:messageContentForServerDB(...) and native/input-state-container:sendMultimediaMessageAction(...) and introduce helper function.

This is just a straightforward refactor to cut redundancy.


Depends on D5197

Test Plan: Set breakpoints and verified that values were as expected at each step.

Reviewers: tomek, abosh, marcin

Reviewed By: tomek

Subscribers: ashoat

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

Details

Provenance
atulAuthored on Sep 22 2022, 6:06 AM
Reviewer
tomek
Differential Revision
D5198: [keyserver] Introduce `getMediaMessageServerDBContentsFromMedia(...)`
Parents
rCOMM88359e06a697: [native] Type global.CommCoreModule
Branches
Unknown
Tags
Unknown