Merge pull request #1746 from Bilb/fix-attachment-trust-already-downloaded

fix trust do not trigger redownload of already dl medias
pull/1747/head
Audric Ackermann 4 years ago committed by GitHub
commit 9f88840f0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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