mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-21 03:28:47 +00:00
Don't mark deletion failure if we are in an IDLE state.
This commit is contained in:
@@ -135,7 +135,9 @@ class BackupDeleteJob private constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun onFailure() {
|
override fun onFailure() {
|
||||||
if (SignalStore.backup.deletionState == DeletionState.AWAITING_MEDIA_DOWNLOAD) {
|
if (SignalStore.backup.deletionState.isIdle()) {
|
||||||
|
Log.w(TAG, "Backup is idle. Not marking a deletion.")
|
||||||
|
} else if (SignalStore.backup.deletionState == DeletionState.AWAITING_MEDIA_DOWNLOAD) {
|
||||||
Log.w(TAG, "BackupDeleteFailure occurred while awaiting media download, ignoring.")
|
Log.w(TAG, "BackupDeleteFailure occurred while awaiting media download, ignoring.")
|
||||||
} else {
|
} else {
|
||||||
SignalStore.backup.deletionState = DeletionState.FAILED
|
SignalStore.backup.deletionState = DeletionState.FAILED
|
||||||
|
|||||||
Reference in New Issue
Block a user