Remove EMS banner from Server Selection screen.

This commit is contained in:
Doug
2022-05-12 15:27:57 +01:00
committed by Doug
parent 963fba6673
commit bec012fbbb
9 changed files with 0 additions and 100 deletions
@@ -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)
}
}
}