Page MenuHomePhabricator

[native] Fix for encrypted media
ClosedPublic

Authored by atul on Feb 21 2024, 11:35 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 12, 8:55 PM
Unknown Object (File)
Oct 10 2024, 8:58 AM
Unknown Object (File)
Oct 10 2024, 8:58 AM
Unknown Object (File)
Oct 10 2024, 8:58 AM
Unknown Object (File)
Oct 10 2024, 8:58 AM
Unknown Object (File)
Oct 10 2024, 8:57 AM
Unknown Object (File)
Sep 28 2024, 12:30 PM
Unknown Object (File)
Sep 28 2024, 12:26 PM
Subscribers

Details

Summary

Context can be found here: https://linear.app/comm/issue/ENG-6850/build-316-cant-load-encrypted-images

Just removing getAuthMetadata call for now and passing undefined to fetchAndDecryptMedia.

NOTE: I know that I could further "simplify" useFetchAndDecryptMedia by removing the useContext, removing the outer function, etc. but I want to keep the API the same so @bartek or whoever in the future can drop getAuthMetadata back in.
Test Plan

Able to view encrypted images again:

001c3c.png (1×744 px, 385 KB)

Set breakpoints through fetchAndDecryptMedia and ensured that things worked as expected without auth metadata.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul published this revision for review.Feb 21 2024, 11:35 AM
atul edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Feb 21 2024, 11:39 AM

We should fix the Flow issues before landing

This revision was automatically updated to reflect the committed changes.