Remove pending flag once attachment is downloaded

Co-authored-by: trevor-signal <131492920+trevor-signal@users.noreply.github.com>
This commit is contained in:
automated-signal 2024-04-18 19:11:38 -05:00 committed by Fedor Indutny
parent 817b23740b
commit d37b89ac03

View file

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