From 54c4bda4f287f11d873b9b7b50cb6ccf0ab5743a Mon Sep 17 00:00:00 2001 From: Alex Hart Date: Tue, 26 May 2026 12:26:33 -0300 Subject: [PATCH] Allow local backup restore to proceed regardless of remote restore failure state. Co-authored-by: Greyson Parrelli --- .../securesms/jobs/RestoreLocalAttachmentJob.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/jobs/RestoreLocalAttachmentJob.kt b/app/src/main/java/org/thoughtcrime/securesms/jobs/RestoreLocalAttachmentJob.kt index 15655cf55d..cc87c449db 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/jobs/RestoreLocalAttachmentJob.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/jobs/RestoreLocalAttachmentJob.kt @@ -133,12 +133,7 @@ class RestoreLocalAttachmentJob private constructor( return Result.failure() } - if (attachment.isPermanentlyFailed) { - Log.w(TAG, "Attachment was marked as a permanent failure. Refusing to download.") - return Result.failure() - } - - if (attachment.transferState != AttachmentTable.TRANSFER_NEEDS_RESTORE && attachment.transferState != AttachmentTable.TRANSFER_RESTORE_IN_PROGRESS) { + if (attachment.transferState == AttachmentTable.TRANSFER_PROGRESS_DONE) { Log.w(TAG, "Attachment does not need to be restored.") return Result.success() }