MESSENGER-5706 change appearance and use wellknown

This commit is contained in:
JanNiklas Grabowski
2024-02-27 14:36:30 +01:00
parent d15d8e9f76
commit 3ddb4e4d04
8 changed files with 87 additions and 21 deletions
@@ -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()
}
}
}
}