Remove pending flag once attachment is downloaded

This commit is contained in:
trevor-signal 2024-04-18 16:49:12 -04:00 committed by GitHub
parent 9295096586
commit e5aef6ad44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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 {