mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-02 08:23:00 +01:00
Minor improvements to SVRB error handling.
This commit is contained in:
committed by
Cody Henthorne
parent
8bc183b994
commit
c7a6c7ad9e
@@ -219,11 +219,17 @@ class BackupMessagesJob private constructor(
|
||||
is SvrBApi.RestoreResult.RestoreFailedError,
|
||||
SvrBApi.RestoreResult.InvalidDataError -> {
|
||||
Log.i(TAG, "[svrb-restore] Permanent SVRB error! Continuing $result")
|
||||
SignalStore.backup.nextBackupSecretData = null
|
||||
}
|
||||
|
||||
SvrBApi.RestoreResult.DataMissingError -> {
|
||||
Log.i(TAG, "[svrb-restore] No SVRB data found, resetting local secret data: $result")
|
||||
SignalStore.backup.nextBackupSecretData = null
|
||||
}
|
||||
|
||||
SvrBApi.RestoreResult.DataMissingError,
|
||||
is SvrBApi.RestoreResult.SvrError -> {
|
||||
Log.i(TAG, "[svrb-restore] Failed to fetch SVRB data, continuing: $result")
|
||||
Log.w(TAG, "[svrb-restore] SVR enclave error, blocking backup until restore succeeds.", result.throwable, true)
|
||||
return Result.retry(defaultBackoff())
|
||||
}
|
||||
|
||||
is SvrBApi.RestoreResult.UnknownError -> {
|
||||
|
||||
Reference in New Issue
Block a user