mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 00:52:43 +02:00
Feature/3449 release prep
This commit is contained in:
@@ -109,8 +109,9 @@ final class SecretsResetViewController: UIViewController {
|
||||
}
|
||||
|
||||
private func setupViews() {
|
||||
if let session = AppDelegate.theDelegate().mxSessions.first as? MXSession {
|
||||
if session.homeserverWellknown.backupRequired() {
|
||||
// bwi resolve crash when wellknown not ready (reset phrase at app start) but generally the inclusion of the cancel button looks wrong
|
||||
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
|
||||
self?.cancelButtonAction()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user