Clear credentials in pre-restore state.

This commit is contained in:
Cody Henthorne
2025-09-24 15:05:39 -04:00
committed by Jeffrey Starke
parent e2be1e0c79
commit c3350c0bb0

View File

@@ -1940,6 +1940,7 @@ object BackupRepository {
} else if (isPreRestoreDuringRegistration()) {
Log.w(TAG, "Requesting/using auth credentials in pre-restore state", Throwable())
getArchiveServiceAccessPair()
.runOnApplicationError(clearAuthCredentials)
} else {
val messageBackupKey = SignalStore.backup.messageBackupKey
val mediaRootBackupKey = SignalStore.backup.mediaRootBackupKey