mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
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:
@@ -41,7 +41,7 @@ struct SettingsScreenViewState: BindableState {
|
||||
var accountSessionsListURL: URL?
|
||||
var userAvatarURL: URL?
|
||||
var userDisplayName: String?
|
||||
var isSessionVerified = false
|
||||
var isSessionVerified: Bool?
|
||||
var chatBackupEnabled = false
|
||||
var showSecureBackupBadge = false
|
||||
var showDeveloperOptions: Bool
|
||||
|
||||
@@ -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) })
|
||||
|
||||
Reference in New Issue
Block a user