From 01284ef8c6a91127ab535af8a37f792ae760c825 Mon Sep 17 00:00:00 2001 From: Jaiwanth Date: Mon, 31 May 2021 23:33:20 +0530 Subject: [PATCH] Handle encrypted voice messages --- src/utils/exportUtils/HtmlExport.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/exportUtils/HtmlExport.tsx b/src/utils/exportUtils/HtmlExport.tsx index 914b8867a9..a69fab9f06 100644 --- a/src/utils/exportUtils/HtmlExport.tsx +++ b/src/utils/exportUtils/HtmlExport.tsx @@ -155,7 +155,7 @@ export default class HTMLExporter extends Exporter { try { const isEncrypted = event.isEncrypted(); const content = event.getContent(); - if (isEncrypted) { + if (isEncrypted && !content.hasOwnProperty("org.matrix.msc1767.file")) { blob = await decryptFile(content.file); } else { const media = mediaFromContent(event.getContent());