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
-6
View File
@@ -148,9 +148,6 @@ extension UserDefaults
if let externalUrlScheme = dict[externalUrlSchemeKey] as? String {
config.externalUrlScheme = externalUrlScheme
}
if let shouldShowFederationAnnouncement = dict[federationAnnouncementKey] as? Bool {
config.shouldShowFederationAnnouncement = shouldShowFederationAnnouncement
}
// app config needs at least a valid server url
if let serverUrl = config.serverUrl {
@@ -206,7 +203,4 @@ extension UserDefaults
return appConfig.externalUrlScheme
}
func shouldShowFederationAnnouncement() -> Bool {
return appConfig.shouldShowFederationAnnouncement ?? false
}
}