mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-24 02:39:55 +01:00
Use unauth WebSocket after quick restore for transfer mode decision.
This commit is contained in:
committed by
Michelle Tang
parent
143b2b5bd5
commit
ac36eeb84d
@@ -30,13 +30,15 @@ class TransferAccountViewModel(reRegisterUri: String) : ViewModel() {
|
||||
val result = QuickRegistrationRepository.transferAccount(store.value.reRegisterUri, restoreMethodToken)
|
||||
store.update { it.copy(reRegisterResult = result, inProgress = false) }
|
||||
|
||||
val restoreMethod = QuickRegistrationRepository.waitForRestoreMethodSelectionOnNewDevice(restoreMethodToken)
|
||||
if (result == QuickRegistrationRepository.TransferAccountResult.SUCCESS) {
|
||||
val restoreMethod = QuickRegistrationRepository.waitForRestoreMethodSelectionOnNewDevice(restoreMethodToken)
|
||||
|
||||
if (restoreMethod != RestoreMethod.DECLINE) {
|
||||
SignalStore.registration.restoringOnNewDevice = true
|
||||
if (restoreMethod != RestoreMethod.DECLINE) {
|
||||
SignalStore.registration.restoringOnNewDevice = true
|
||||
}
|
||||
|
||||
store.update { it.copy(restoreMethodSelected = restoreMethod) }
|
||||
}
|
||||
|
||||
store.update { it.copy(restoreMethodSelected = restoreMethod) }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user