mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-19 07:09:14 +00:00
fix(recovery): Check server location on recovery for server selection step
This commit is contained in:
parent
f938a04c5e
commit
b6e38bd141
|
@ -164,13 +164,14 @@ class ServerInstallationRepository {
|
|||
return RecoveryStep.serverProviderToken;
|
||||
}
|
||||
|
||||
/// We don't write anything to the database after .serverSelection
|
||||
/// step, therefore we have to re-ask it again before prompting for
|
||||
/// DNS token, if it wasn't provided yet.
|
||||
if (dnsProviderToken == null) {
|
||||
if (serverDetails.serverLocation == null) {
|
||||
return RecoveryStep.serverSelection;
|
||||
}
|
||||
|
||||
if (dnsProviderToken == null) {
|
||||
return RecoveryStep.dnsProviderToken;
|
||||
}
|
||||
|
||||
return RecoveryStep.backblazeToken;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue