Page MenuHomePhabricator

[lib] Add option to force-create multimedia-type message
ClosedPublic

Authored by bartek on Mar 28 2023, 12:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 10:14 PM
Unknown Object (File)
Tue, Nov 12, 8:14 PM
Unknown Object (File)
Tue, Nov 12, 4:58 PM
Unknown Object (File)
Tue, Nov 12, 4:27 PM
Unknown Object (File)
Tue, Nov 12, 1:22 PM
Unknown Object (File)
Tue, Nov 12, 12:52 PM
Unknown Object (File)
Fri, Nov 8, 3:34 AM
Unknown Object (File)
Mon, Nov 4, 3:29 AM
Subscribers

Details

Summary

Currently, when creating a new multimedia message, it's type is based on content. If there are only photos, then it is set to PHOTOS (14). If it contains one or more videos, then it is set to MULTIMEDIA (15).
For encrypted photos, the type should always be MULTIMEDIA. This diff adds an option to force this setting.

Test Plan

Set this option to true in the callsite inside input-state-container. Then sent a message. Ensured that this message has type 15 in both Redux and keyserver database.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage