From e79c8249138dd66efdf0eaef6558149bc1ad4a09 Mon Sep 17 00:00:00 2001 From: Valere Date: Thu, 16 Apr 2020 10:30:58 +0200 Subject: [PATCH] Fix / password visibility initial state bug --- .../riotx/features/crypto/recover/BootstrapSharedViewModel.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapSharedViewModel.kt b/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapSharedViewModel.kt index 4755db728a..55481b1f5b 100644 --- a/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapSharedViewModel.kt +++ b/vector/src/main/java/im/vector/riotx/features/crypto/recover/BootstrapSharedViewModel.kt @@ -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 {