Details
Details
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
| web/media/encrypted-multimedia.react.js | ||
|---|---|---|
| 47–62 ↗ | (On Diff #36576) | As in the previous diff, we can consider introducing a new hook that makes it more convenient, e.g. function useFetchAndDecryptMedia() {
const identityContext = React.useContext(IdentityClientContext);
...
return React.useCallback((
blobURI,
encryptionKey
) => {
const authMedatata = await getAuthMetadata();
return fetchAndDecryptMedia(
blobURI,
encryptionKey,
authMedatata,
);
}
} |