fix trust do not trigger redownload of already dl medias

pull/1746/head
Audric Ackermann 4 years ago
parent 19555b99a0
commit 52293d6787
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -2,7 +2,7 @@
"name": "session-desktop",
"productName": "Session",
"description": "Private messaging from your desktop",
"version": "1.6.6",
"version": "1.6.7",
"license": "GPL-3.0",
"author": {
"name": "Loki Project",

@ -58,6 +58,9 @@ export const ClickToTrustSender = (props: { messageId: string }) => {
const downloadedAttachments = await Promise.all(
msgAttachments.map(async (attachment: any, index: any) => {
if (attachment.path) {
return { ...attachment, pending: false };
}
return AttachmentDownloads.addJob(attachment, {
messageId: message.id,
type: 'attachment',

Loading…
Cancel
Save