mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 23:48:29 +02:00
Display only available secure backup methods on setup
This commit is contained in:
@@ -123,6 +123,21 @@ final class SecureBackupSetupIntroViewController: UIViewController {
|
||||
}
|
||||
self.delegate?.secureBackupSetupIntroViewControllerDidTapUsePassphrase(self)
|
||||
}
|
||||
|
||||
setupBackupMethods()
|
||||
}
|
||||
|
||||
private func setupBackupMethods() {
|
||||
let secureBackupSetupMethods = self.viewModel.homeserverEncryptionConfiguration.secureBackupSetupMethods
|
||||
|
||||
// Hide setup methods that are not listed
|
||||
if !secureBackupSetupMethods.contains(.key) {
|
||||
self.secureKeyCell.isHidden = true
|
||||
}
|
||||
|
||||
if !secureBackupSetupMethods.contains(.passphrase) {
|
||||
self.securePassphraseCell.isHidden = true
|
||||
}
|
||||
}
|
||||
|
||||
private func renderLoading() {
|
||||
|
||||
Reference in New Issue
Block a user