@@ -107,8 +107,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
107
107
copy(
108
108
step = BootstrapStep .FirstForm (
109
109
keyBackUpExist = false ,
110
- reset = session.sharedSecretStorageService().isRecoverySetup(),
111
- methods = this .secureBackupMethod
110
+ reset = session.sharedSecretStorageService().isRecoverySetup()
112
111
)
113
112
)
114
113
}
@@ -134,7 +133,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
134
133
// we just resume plain bootstrap
135
134
doesKeyBackupExist = false
136
135
setState {
137
- copy(step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist, methods = this .secureBackupMethod ))
136
+ copy(step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist))
138
137
}
139
138
} else {
140
139
// we need to get existing backup passphrase/key and convert to SSSS
@@ -148,7 +147,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
148
147
doesKeyBackupExist = true
149
148
isBackupCreatedFromPassphrase = keyVersion.getAuthDataAsMegolmBackupAuthData()?.privateKeySalt != null
150
149
setState {
151
- copy(step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist, methods = this .secureBackupMethod ))
150
+ copy(step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist))
152
151
}
153
152
}
154
153
}
@@ -496,7 +495,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
496
495
} else {
497
496
setState {
498
497
copy(
499
- step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist, methods = this .secureBackupMethod ),
498
+ step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist),
500
499
// Also reset the passphrase
501
500
passphrase = null ,
502
501
passphraseRepeat = null ,
@@ -509,7 +508,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
509
508
is BootstrapStep .SetupPassphrase -> {
510
509
setState {
511
510
copy(
512
- step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist, methods = this .secureBackupMethod ),
511
+ step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist),
513
512
// Also reset the passphrase
514
513
passphrase = null ,
515
514
passphraseRepeat = null
@@ -530,7 +529,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
530
529
// Go back to the first step
531
530
setState {
532
531
copy(
533
- step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist, methods = this .secureBackupMethod ),
532
+ step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist),
534
533
// Also reset the passphrase
535
534
passphrase = null ,
536
535
passphraseRepeat = null
@@ -563,7 +562,7 @@ class BootstrapSharedViewModel @AssistedInject constructor(
563
562
is BootstrapStep .GetBackupSecretForMigration -> {
564
563
setState {
565
564
copy(
566
- step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist, methods = this .secureBackupMethod ),
565
+ step = BootstrapStep .FirstForm (keyBackUpExist = doesKeyBackupExist),
567
566
// Also reset the passphrase
568
567
passphrase = null ,
569
568
passphraseRepeat = null ,
0 commit comments