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
F1758911: D7230.diff
Tue, May 14, 2:38 PM
Unknown Object (File)
Wed, May 1, 3:40 PM
Unknown Object (File)
Wed, May 1, 3:40 PM
Unknown Object (File)
Sat, Apr 27, 8:59 PM
Unknown Object (File)
Sat, Apr 27, 8:58 PM
Unknown Object (File)
Sat, Apr 27, 8:58 PM
Unknown Object (File)
Sat, Apr 27, 8:55 PM
Unknown Object (File)
Sat, Apr 27, 8:30 PM
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
Branch
barthap/encrypted-media/js
Lint
No Lint Coverage
Unit
No Test Coverage