Feature/4218 wellknown defaults

This commit is contained in:
Frank Rotermund
2023-02-28 10:07:25 +00:00
committed by Arnfried Griesert
parent cffa0c1d16
commit 7a15f43f64
3 changed files with 20 additions and 6 deletions
@@ -102,8 +102,8 @@ final class SecureBackupSetupIntroViewController: UIViewController {
self.title = BWIL10n.secureKeyBackupSetupIntroTitle
self.informationLabel.text = BWIL10n.secureKeyBackupSetupIntroInfo
if let session = AppDelegate.theDelegate().mxSessions.first as? MXSession {
if !session.homeserverWellknown.backupRequired() {
if let session = AppDelegate.theDelegate().mxSessions.first as? MXSession, let wellknown = session.homeserverWellknown {
if wellknown.backupRequired() {
let cancelBarButtonItem = MXKBarButtonItem(title: VectorL10n.cancel, style: .plain) { [weak self] in
guard let self = self else {
return