Передача транспортного сервера в контекст, в базу, и в кэш

This commit is contained in:
RoyceDa
2026-03-29 14:58:52 +02:00
parent 61e83bdd43
commit 2f2a0b5376
2 changed files with 94 additions and 15 deletions

View File

@@ -53,6 +53,7 @@ export function useAttachment(attachment: Attachment, parentMessage: MessageProp
}
const calcDownloadStatus = async () => {
console.info("ds", attachment);
if (downloadStatus == DownloadStatus.DOWNLOADED) {
return;
}
@@ -142,6 +143,7 @@ export function useAttachment(attachment: Attachment, parentMessage: MessageProp
return;
}
setDownloadStatus(DownloadStatus.DECRYPTING);
console.info("decoding with key " + parentMessage.chacha_key_plain);
//console.info("Decrypted attachment ", Buffer.from(keyPlain, 'binary').toString('hex'));
const decrypted = await decodeWithPassword(parentMessage.chacha_key_plain, downloadedBlob);
setDownloadTag("");