mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Allow the recovery section to be shown when recovery is incomplete and key backup is stuck waiting for the secrets
This commit is contained in:
committed by
Stefan Ceriu
parent
495ee8ab38
commit
4cba5687c6
+9
-3
@@ -23,11 +23,17 @@ struct SecureBackupScreen: View {
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
if context.viewState.keyBackupState == .unknown {
|
||||
keyBackupSection
|
||||
// Show recovery options for confirming the recovery key and
|
||||
// getting access to secrets and implicitly the key backup
|
||||
if context.viewState.recoveryKeyState == .incomplete {
|
||||
recoveryKeySection
|
||||
} else {
|
||||
keyBackupSection
|
||||
recoveryKeySection
|
||||
|
||||
// Don't show recovery options until key backup is enabled
|
||||
if context.viewState.keyBackupState != .unknown {
|
||||
recoveryKeySection
|
||||
}
|
||||
}
|
||||
}
|
||||
.compoundList()
|
||||
|
||||
Reference in New Issue
Block a user