fix(recovery): Check server location on recovery for server selection step

This commit is contained in:
NaiJi 2024-09-21 23:39:58 +04:00 committed by Inex Code
parent f938a04c5e
commit b6e38bd141

View file

@ -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;
}