mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Prevent SVRB falling out of sync after re-registrations.
This commit is contained in:
committed by
Michelle Tang
parent
10d6e5293b
commit
d6156ab3f2
@@ -914,6 +914,10 @@ class RegistrationViewModel : ViewModel() {
|
||||
SignalStore.registration.restoreDecisionState = RestoreDecisionState.NewAccount
|
||||
}
|
||||
|
||||
if (remoteResult.reRegistration) {
|
||||
SignalStore.backup.backupSecretRestoreRequired = true
|
||||
}
|
||||
|
||||
if (reglockEnabled || SignalStore.account.restoredAccountEntropyPool) {
|
||||
SignalStore.onboarding.clearAll()
|
||||
|
||||
|
||||
@@ -122,6 +122,7 @@ class RemoteRestoreViewModel(isOnlyRestoreOption: Boolean) : ViewModel() {
|
||||
Log.i(TAG, "Restore successful", true)
|
||||
SignalStore.registration.restoreDecisionState = RestoreDecisionState.Completed
|
||||
|
||||
SignalStore.backup.backupSecretRestoreRequired = false
|
||||
StorageServiceRestore.restore()
|
||||
|
||||
store.update { it.copy(importState = ImportState.Restored) }
|
||||
|
||||
Reference in New Issue
Block a user