fix attachment name decryption
This commit is contained in:
parent
55760ba368
commit
901bc58382
2 changed files with 2 additions and 2 deletions
|
|
@ -3030,9 +3030,9 @@ async function generateMessagesHtml(entries, isPinnedContext = false) {
|
||||||
let content = msg.content;
|
let content = msg.content;
|
||||||
let reactions = msg.reactions || "";
|
let reactions = msg.reactions || "";
|
||||||
let decrypted = false;
|
let decrypted = false;
|
||||||
|
let keyToUse = currentDmKey;
|
||||||
if (msg.key && msg.key !== "") {
|
if (msg.key && msg.key !== "") {
|
||||||
try {
|
try {
|
||||||
let keyToUse = currentDmKey;
|
|
||||||
if (window.currentRoomType === 'groups') {
|
if (window.currentRoomType === 'groups') {
|
||||||
keyToUse = await getGroupKey(currentDmId, msg.key);
|
keyToUse = await getGroupKey(currentDmId, msg.key);
|
||||||
if (keyToUse) {
|
if (keyToUse) {
|
||||||
|
|
|
||||||
|
|
@ -3030,9 +3030,9 @@ async function generateMessagesHtml(entries, isPinnedContext = false) {
|
||||||
let content = msg.content;
|
let content = msg.content;
|
||||||
let reactions = msg.reactions || "";
|
let reactions = msg.reactions || "";
|
||||||
let decrypted = false;
|
let decrypted = false;
|
||||||
|
let keyToUse = currentDmKey;
|
||||||
if (msg.key && msg.key !== "") {
|
if (msg.key && msg.key !== "") {
|
||||||
try {
|
try {
|
||||||
let keyToUse = currentDmKey;
|
|
||||||
if (window.currentRoomType === 'groups') {
|
if (window.currentRoomType === 'groups') {
|
||||||
keyToUse = await getGroupKey(currentDmId, msg.key);
|
keyToUse = await getGroupKey(currentDmId, msg.key);
|
||||||
if (keyToUse) {
|
if (keyToUse) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue