Page MenuHomePhabricator

[web] Support encrypted media in <Multimedia>
ClosedPublic

Authored by bartek on Apr 3 2023, 3:19 AM.
Tags
None
Referenced Files
F3628224: D7281.diff
Thu, Jan 2, 7:08 PM
Unknown Object (File)
Sat, Dec 14, 4:49 PM
Unknown Object (File)
Sat, Dec 14, 4:49 PM
Unknown Object (File)
Sat, Dec 14, 4:49 PM
Unknown Object (File)
Sat, Dec 14, 4:48 PM
Unknown Object (File)
Sat, Dec 14, 4:43 PM
Unknown Object (File)
Thu, Dec 12, 7:57 PM
Unknown Object (File)
Thu, Dec 5, 8:41 PM
Subscribers

Details

Summary

This diff modifies the <Multimedia> component to be able to display encrypted media.
The type and uri props are replaced by a single object representing an encrypted or non-encrypted media.

Depends on D7280

Test Plan

Both encrypted and decrypted media are displayed in the chat. Clicking on them opens a modal.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

bartek held this revision as a draft.
bartek published this revision for review.Apr 3 2023, 4:57 AM
atul requested changes to this revision.Apr 4 2023, 9:27 AM

I think the condition at web/media/multimedia.react.js:52-53 was intended to be || instead of &&?

Feel free to re-request review if I'm mistaken about something

web/media/multimedia.react.js
52–53

Did you intend this to be || instead of &&?

I don't believe the condition here is "reachable?"

This revision now requires changes to proceed.Apr 4 2023, 9:27 AM
web/media/multimedia.react.js
52–53

Indeed, good catch!

This revision is now accepted and ready to land.Apr 6 2023, 7:48 AM