Details
Details
Diff Detail
Diff Detail
- Repository
- rCOMM Comm
- Lint
No Lint Coverage - Unit
No Test Coverage
Event Timeline
web/media/encrypted-multimedia.react.js | ||
---|---|---|
47–62 | 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, ); } } |