mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-28 20:26:57 +02:00
Show recover encryption keys message according to key backup requirement
This commit is contained in:
@@ -42,11 +42,15 @@ enum AuthenticationSoftLogoutViewModelResult {
|
||||
// MARK: View
|
||||
|
||||
struct AuthenticationSoftLogoutViewState: BindableState {
|
||||
/// Soft logout credentials
|
||||
var credentials: SoftLogoutCredentials
|
||||
|
||||
/// Data about the selected homeserver.
|
||||
var homeserver: AuthenticationHomeserverViewData
|
||||
|
||||
/// Flag indicating soft logged out user needs backup for some keys
|
||||
var keyBackupNeeded: Bool
|
||||
|
||||
/// View state that can be bound to from SwiftUI.
|
||||
var bindings: AuthenticationSoftLogoutBindings
|
||||
|
||||
@@ -59,6 +63,11 @@ struct AuthenticationSoftLogoutViewState: BindableState {
|
||||
var showSSOButtons: Bool {
|
||||
!homeserver.ssoIdentityProviders.isEmpty
|
||||
}
|
||||
|
||||
/// Whether to show recover encryption keys message
|
||||
var showRecoverEncryptionKeysMessage: Bool {
|
||||
keyBackupNeeded
|
||||
}
|
||||
|
||||
/// Whether the password is valid and the user can continue.
|
||||
var hasInvalidPassword: Bool {
|
||||
|
||||
Reference in New Issue
Block a user