Secure backup tweaks (#2095)

* Show a loading indicator when confirming the recovery key

* Hide the passphrase characters when confirming the recovery key

* Don't show the settings security section until session verification state is retrieved (async)

* Fix preview screenshots
This commit is contained in:
Stefan Ceriu
2023-11-17 12:06:36 +02:00
committed by GitHub
parent 22742620c5
commit d245a4f158
6 changed files with 14 additions and 9 deletions
@@ -84,9 +84,9 @@ struct SettingsScreen: View {
@ViewBuilder
private var accountSecuritySection: some View {
if !context.viewState.isSessionVerified || context.viewState.chatBackupEnabled {
Section {
if !context.viewState.isSessionVerified {
Section {
if let isSessionVerified = context.viewState.isSessionVerified {
if !isSessionVerified {
ListRow(label: .default(title: L10n.actionCompleteVerification,
icon: \.checkCircle),
kind: .button { context.send(viewAction: .sessionVerification) })