Details
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, ); } } |
I think the wording here may be a bit confusing. In my experience, 'cancel' typically means close the alert, and there's another option like 'confirm' or something that will mean you're ok with discarding changes.
Here it seems like 'cancel' means we're ok with discarding changes. Not sure if it's just me though (cc @ted)