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

This commit is contained in:
Greyson Parrelli 2018-10-07 14:21:33 -07:00
parent a1ba5003d3
commit 1c197ad93d

View File

@ -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;
}