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

fork-5.53.8
Greyson Parrelli 2018-10-07 14:21:33 -07:00
rodzic a1ba5003d3
commit 1c197ad93d
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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