You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
Update src/utils/DecryptFile.ts
Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -31,7 +31,7 @@ import { getBlobSafeMimeType } from "./blobs";
|
|||||||
*/
|
*/
|
||||||
export function decryptFile(
|
export function decryptFile(
|
||||||
file: IEncryptedFile,
|
file: IEncryptedFile,
|
||||||
info: IMediaEventInfo | undefined,
|
info?: IMediaEventInfo,
|
||||||
): Promise<Blob> {
|
): Promise<Blob> {
|
||||||
const media = mediaFromContent({ file });
|
const media = mediaFromContent({ file });
|
||||||
// Download the encrypted file as an array buffer.
|
// Download the encrypted file as an array buffer.
|
||||||
|
|||||||
Reference in New Issue
Block a user