mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-08-20 05:10:16 +01:00
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:
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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user