From 1c197ad93d94b8714f62db54d6d6b837911a930c Mon Sep 17 00:00:00 2001 From: Greyson Parrelli Date: Sun, 7 Oct 2018 14:21:33 -0700 Subject: [PATCH] Reset attachment transfer state if auto-download requirements are not met. --- src/org/thoughtcrime/securesms/jobs/AttachmentDownloadJob.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/org/thoughtcrime/securesms/jobs/AttachmentDownloadJob.java b/src/org/thoughtcrime/securesms/jobs/AttachmentDownloadJob.java index b801da4077..463bcd822b 100644 --- a/src/org/thoughtcrime/securesms/jobs/AttachmentDownloadJob.java +++ b/src/org/thoughtcrime/securesms/jobs/AttachmentDownloadJob.java @@ -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; }