Remove pending flag once attachment is downloaded
This commit is contained in:
parent
9295096586
commit
e5aef6ad44
1 changed files with 7 additions and 3 deletions
|
@ -598,9 +598,13 @@ async function runDownloadAttachmentJobInner(
|
||||||
const upgradedAttachment =
|
const upgradedAttachment =
|
||||||
await window.Signal.Migrations.processNewAttachment(downloaded);
|
await window.Signal.Migrations.processNewAttachment(downloaded);
|
||||||
|
|
||||||
await addAttachmentToMessage(message, omit(upgradedAttachment, 'error'), {
|
await addAttachmentToMessage(
|
||||||
|
message,
|
||||||
|
omit(upgradedAttachment, ['error', 'pending']),
|
||||||
|
{
|
||||||
type,
|
type,
|
||||||
});
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
function _markAttachmentAsTooBig(attachment: AttachmentType): AttachmentType {
|
function _markAttachmentAsTooBig(attachment: AttachmentType): AttachmentType {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue