Ускоренная загрузка диалогов

This commit is contained in:
RoyceDa
2026-02-20 18:17:47 +02:00
parent 142082ba83
commit 9379bd656d
3 changed files with 7 additions and 2 deletions

View File

@@ -840,10 +840,13 @@ export function DialogProvider(props: DialogProviderProps) {
});
continue;
}
const decrypted = await decodeWithPassword(privatePlain, Buffer.from(fileData, 'binary').toString());
let blob = "";
if(meta.type != AttachmentType.IMAGE){
blob = await decodeWithPassword(privatePlain, Buffer.from(fileData, 'binary').toString());
}
attachments.push({
id: meta.id,
blob: decrypted,
blob: blob,
type: meta.type,
preview: meta.preview
});