mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 17:12:45 +02:00
Feature/3637 pusher url
This commit is contained in:
committed by
Arnfried Griesert
parent
3a6c5d5b9f
commit
12a982724f
@@ -49,12 +49,11 @@ import Foundation
|
||||
for urlSet in urls {
|
||||
if let dict = urlSet as? Dictionary<String,String> {
|
||||
if let server = dict[serverUrlKey],
|
||||
let pusher = dict[pusherUrlKey],
|
||||
let flavor = dict[flavorUrlKey],
|
||||
let name = dict[nameKey],
|
||||
let permalink = dict[permalinkKey] ,
|
||||
let analytics = dict[analyticsKey] {
|
||||
serverSettings.append(ServerSetting(name:name, serverUrl: server, pusherUrl: pusher, flavor: flavor, permalink:permalink, analytics: analytics))
|
||||
serverSettings.append(ServerSetting(name:name, serverUrl: server, pusherUrl: "", flavor: flavor, permalink:permalink, analytics: analytics))
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -89,6 +88,7 @@ import Foundation
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func pusherUrl() -> String? {
|
||||
if serverSettings.indices.contains(selectedIndex) {
|
||||
return serverSettings[selectedIndex].pusherUrl
|
||||
|
||||
Reference in New Issue
Block a user