mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Reset attachment transfer state if auto-download requirements are not met.
This commit is contained in:
parent
a1ba5003d3
commit
1c197ad93d
@ -115,6 +115,7 @@ public class AttachmentDownloadJob extends MasterSecretJob implements Injectable
|
|||||||
|
|
||||||
if (!manual && !AttachmentUtil.isAutoDownloadPermitted(context, attachment)) {
|
if (!manual && !AttachmentUtil.isAutoDownloadPermitted(context, attachment)) {
|
||||||
Log.w(TAG, "Attachment can't be auto downloaded...");
|
Log.w(TAG, "Attachment can't be auto downloaded...");
|
||||||
|
database.setTransferState(messageId, attachmentId, AttachmentDatabase.TRANSFER_PROGRESS_PENDING);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user