mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-29 04:36:58 +02:00
MESSENGER-5706 change appearance and use wellknown
This commit is contained in:
@@ -495,13 +495,14 @@ class AllChatsViewController: HomeViewController {
|
||||
|
||||
// bwi: 5706 show federation announcement promt
|
||||
func bwiCheckForFederationAnnouncementPromt() {
|
||||
if AppConfigService.shared.shouldShowFederationAnnouncement() {
|
||||
if self.mainSession.homeserverWellknown.shouldShowFederationAnnouncement() {
|
||||
let sharedSettings = RiotSharedSettings(session: self.mainSession)
|
||||
if sharedSettings.shouldShowFederationAnnouncement() {
|
||||
let viewController = FederationAnnouncementSheet().makeViewController()
|
||||
viewController.modalPresentationStyle = .formSheet
|
||||
self.present(viewController, animated: true, completion: nil)
|
||||
sharedSettings.setFederationAnnouncement()
|
||||
self.present(viewController, animated: true) {
|
||||
sharedSettings.setFederationAnnouncement()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user