mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Remove EMS banner from Server Selection screen.
This commit is contained in:
-12
@@ -46,8 +46,6 @@ class AuthenticationServerSelectionViewModel: AuthenticationServerSelectionViewM
|
||||
Task { await callback?(.confirm(homeserverAddress: state.bindings.homeserverAddress)) }
|
||||
case .dismiss:
|
||||
Task { await callback?(.dismiss) }
|
||||
case .getInTouch:
|
||||
Task { await getInTouch() }
|
||||
case .clearFooterError:
|
||||
Task { await clearFooterError() }
|
||||
}
|
||||
@@ -71,14 +69,4 @@ class AuthenticationServerSelectionViewModel: AuthenticationServerSelectionViewM
|
||||
guard state.footerErrorMessage != nil else { return }
|
||||
withAnimation { state.footerErrorMessage = nil }
|
||||
}
|
||||
|
||||
/// Opens the EMS link in the user's browser.
|
||||
@MainActor private func getInTouch() {
|
||||
let url = BuildSettings.onboardingHostYourOwnServerLink
|
||||
|
||||
UIApplication.shared.open(url) { [weak self] success in
|
||||
guard !success, let self = self else { return }
|
||||
self.displayError(.openURLAlert)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user