From e5aef6ad44a642916ffe514788ef1e7a83a87187 Mon Sep 17 00:00:00 2001 From: trevor-signal <131492920+trevor-signal@users.noreply.github.com> Date: Thu, 18 Apr 2024 16:49:12 -0400 Subject: [PATCH] Remove pending flag once attachment is downloaded --- ts/jobs/AttachmentDownloadManager.ts | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ts/jobs/AttachmentDownloadManager.ts b/ts/jobs/AttachmentDownloadManager.ts index fd5d475cb037..f4a87dfb05ea 100644 --- a/ts/jobs/AttachmentDownloadManager.ts +++ b/ts/jobs/AttachmentDownloadManager.ts @@ -598,9 +598,13 @@ async function runDownloadAttachmentJobInner( const upgradedAttachment = await window.Signal.Migrations.processNewAttachment(downloaded); - await addAttachmentToMessage(message, omit(upgradedAttachment, 'error'), { - type, - }); + await addAttachmentToMessage( + message, + omit(upgradedAttachment, ['error', 'pending']), + { + type, + } + ); } function _markAttachmentAsTooBig(attachment: AttachmentType): AttachmentType {