Add headers to StatusCodeError.

This commit is contained in:
Cody Henthorne
2025-03-11 16:22:10 -04:00
committed by Greyson Parrelli
parent 3a1ed7e4ac
commit b563d7e855
4 changed files with 20 additions and 9 deletions

View File

@@ -1466,7 +1466,7 @@ object BackupRepository {
*/
private fun initBackupAndFetchAuth(): NetworkResult<ArchiveServiceAccessPair> {
return if (!RemoteConfig.messageBackups) {
NetworkResult.StatusCodeError(555, null, null, NonSuccessfulResponseCodeException(555, "Backups disabled!"))
NetworkResult.StatusCodeError(555, null, null, emptyMap(), NonSuccessfulResponseCodeException(555, "Backups disabled!"))
} else if (SignalStore.backup.backupsInitialized) {
getArchiveServiceAccessPair().runOnStatusCodeError(resetInitializedStateErrorAction)
} else if (isPreRestoreDuringRegistration()) {