Reset attachment transfer state if auto-download requirements are not met.

pull/1/head
Greyson Parrelli 7 years ago
parent a1ba5003d3
commit 1c197ad93d

@ -115,6 +115,7 @@ public class AttachmentDownloadJob extends MasterSecretJob implements Injectable
if (!manual && !AttachmentUtil.isAutoDownloadPermitted(context, attachment)) {
Log.w(TAG, "Attachment can't be auto downloaded...");
database.setTransferState(messageId, attachmentId, AttachmentDatabase.TRANSFER_PROGRESS_PENDING);
return;
}

Loading…
Cancel
Save