MESSENGER-3662 Infodialog

This commit is contained in:
Frank Rotermund
2022-12-01 11:11:35 +00:00
parent a2fcf22f0d
commit 068eaba5b4
7 changed files with 31 additions and 1 deletions
@@ -122,7 +122,13 @@ final class AuthenticationServerSelectionCoordinator: Coordinator, Presentable {
guard protectionService.isValid(homeserverAddress) else {
stopLoading()
authenticationServerSelectionViewModel.displayError(.footerMessage(BWIL10n.bwiLoginProtectionErrorMessage(AppInfo.current.displayName)))
let primaryButtonCompletion: (() -> Void)? = { () in
if let url = URL(string: "https://messenger.bwi.de/ich-will-bum") {
UIApplication.shared.open(url)
}
}
authenticationServerSelectionViewModel.displayInfo(BWIL10n.bwiLoginProtectionInfoMessage(AppInfo.current.displayName, AppInfo.current.displayName), buttonTitle: BWIL10n.bwiLoginProtectionInfoButton, completion: primaryButtonCompletion)
return
}
}