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
F1671288: D7230.id24420.diff
Sat, Apr 27, 8:59 PM
F1671277: D7230.id24399.diff
Sat, Apr 27, 8:58 PM
F1671276: D7230.id24314.diff
Sat, Apr 27, 8:58 PM
F1671224: D7230.id.diff
Sat, Apr 27, 8:55 PM
F1671183: D7230.diff
Sat, Apr 27, 8:30 PM
Unknown Object (File)
Mon, Apr 22, 3:14 AM
Unknown Object (File)
Mon, Apr 15, 6:56 PM
Unknown Object (File)
Mon, Apr 15, 6:55 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable