Fix / password visibility initial state bug

This commit is contained in:
Valere 2020-04-16 10:30:58 +02:00
parent b8e9cc70f2
commit e79c824913

View file

@ -111,7 +111,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
val isBackupCreatedFromPassphrase = keyVersion.getAuthDataAsMegolmBackupAuthData()?.privateKeySalt != null
if (isBackupCreatedFromPassphrase) {
setState {
copy(step = BootstrapStep.GetBackupSecretPassForMigration(isBackupCreatedFromPassphrase, false))
copy(step = BootstrapStep.GetBackupSecretPassForMigration(isPasswordVisible = false, useKey = false))
}
} else {
setState {