Ускоренная загрузка диалогов
This commit is contained in:
@@ -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
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user