1
0
mirror of https://github.com/element-hq/element-web.git synced 2025-12-01 09:58:03 +03:00

Handle encrypted voice messages

This commit is contained in:
Jaiwanth
2021-05-31 23:33:20 +05:30
parent 5f1c9d0f88
commit 01284ef8c6

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