mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 09:15:16 +00:00
Handle encrypted voice messages
This commit is contained in:
@@ -155,7 +155,7 @@ export default class HTMLExporter extends Exporter {
|
|||||||
try {
|
try {
|
||||||
const isEncrypted = event.isEncrypted();
|
const isEncrypted = event.isEncrypted();
|
||||||
const content = event.getContent();
|
const content = event.getContent();
|
||||||
if (isEncrypted) {
|
if (isEncrypted && !content.hasOwnProperty("org.matrix.msc1767.file")) {
|
||||||
blob = await decryptFile(content.file);
|
blob = await decryptFile(content.file);
|
||||||
} else {
|
} else {
|
||||||
const media = mediaFromContent(event.getContent());
|
const media = mediaFromContent(event.getContent());
|
||||||
|
|||||||
Reference in New Issue
Block a user