MESSENGER-4549 Enable locationsharing per default when there is an url in well-known

This commit is contained in:
Frank Rotermund
2023-08-16 08:37:15 +02:00
parent b2f78a2ced
commit 7568f86a95
7 changed files with 20 additions and 8 deletions

View File

@@ -77,10 +77,8 @@ final class HomeserverConfigurationBuilder: NSObject {
if let mapStyleURLString = wellKnown?.tileServer?.mapStyleURLString,
let mapStyleURL = URL(string: mapStyleURLString) {
tileServerMapStyleURL = mapStyleURL
} else if let mapStyleURL = URL( string: AppConfigService.shared.serverUrl()) {
tileServerMapStyleURL = mapStyleURL
} else {
tileServerMapStyleURL = BuildSettings.defaultTileServerMapStyleURL
tileServerMapStyleURL = URL(string: BWIBuildSettings.shared.serverConfigDefaultMapstyleURLString)!
}