From 901bc5838273e335500e84f190657fc638e83e9a Mon Sep 17 00:00:00 2001 From: olcxja Date: Mon, 10 Aug 2026 10:17:25 +0200 Subject: [PATCH] fix attachment name decryption --- android/app/src/main/assets/public/main.js | 2 +- webroot/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/android/app/src/main/assets/public/main.js b/android/app/src/main/assets/public/main.js index 3cd1e385..91fa2d52 100644 --- a/android/app/src/main/assets/public/main.js +++ b/android/app/src/main/assets/public/main.js @@ -3030,9 +3030,9 @@ async function generateMessagesHtml(entries, isPinnedContext = false) { let content = msg.content; let reactions = msg.reactions || ""; let decrypted = false; + let keyToUse = currentDmKey; if (msg.key && msg.key !== "") { try { - let keyToUse = currentDmKey; if (window.currentRoomType === 'groups') { keyToUse = await getGroupKey(currentDmId, msg.key); if (keyToUse) { diff --git a/webroot/main.js b/webroot/main.js index 3cd1e385..91fa2d52 100644 --- a/webroot/main.js +++ b/webroot/main.js @@ -3030,9 +3030,9 @@ async function generateMessagesHtml(entries, isPinnedContext = false) { let content = msg.content; let reactions = msg.reactions || ""; let decrypted = false; + let keyToUse = currentDmKey; if (msg.key && msg.key !== "") { try { - let keyToUse = currentDmKey; if (window.currentRoomType === 'groups') { keyToUse = await getGroupKey(currentDmId, msg.key); if (keyToUse) {