Handle encrypted voice messages

pull/21833/head
Jaiwanth 2021-05-31 23:33:20 +05:30
parent 5f1c9d0f88
commit 01284ef8c6
1 changed files with 1 additions and 1 deletions

View File

@ -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());