From 52293d6787a051c705e0763da06469270fc91c3b Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Tue, 29 Jun 2021 16:31:57 +1000 Subject: [PATCH] fix trust do not trigger redownload of already dl medias --- package.json | 2 +- ts/components/conversation/message/ClickToTrustSender.tsx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a99ffbff1..2af38bea6 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/ts/components/conversation/message/ClickToTrustSender.tsx b/ts/components/conversation/message/ClickToTrustSender.tsx index 43eb71736..257755185 100644 --- a/ts/components/conversation/message/ClickToTrustSender.tsx +++ b/ts/components/conversation/message/ClickToTrustSender.tsx @@ -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',