Page MenuHomePhabricator

[native] Fix for encrypted media
ClosedPublic

Authored by atul on Feb 21 2024, 11:35 AM.
Tags
None
Referenced Files
F2834977: D11136.id37411.diff
Sat, Sep 28, 12:26 PM
F2834130: D11136.diff
Sat, Sep 28, 10:16 AM
Unknown Object (File)
Fri, Sep 13, 6:44 PM
Unknown Object (File)
Fri, Sep 13, 12:40 PM
Unknown Object (File)
Fri, Sep 13, 11:13 AM
Unknown Object (File)
Mon, Sep 9, 10:49 PM
Unknown Object (File)
Mon, Sep 9, 10:49 PM
Unknown Object (File)
Mon, Sep 9, 10:49 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.