Allow local backup restore to proceed regardless of remote restore failure state.

Co-authored-by: Greyson Parrelli <greyson@signal.org>
This commit is contained in:
Alex Hart
2026-05-27 14:01:29 -04:00
committed by Michelle Tang
co-authored by Greyson Parrelli
parent 3cb61e3e8a
commit 54c4bda4f2
@@ -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()
}