mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-18 15:38:28 +02:00
MESSENGER-3156 Fix ServerURL preselection
This commit is contained in:
@@ -68,6 +68,17 @@ import Foundation
|
||||
self.loadURLs()
|
||||
}
|
||||
|
||||
func indexOf(_ serverUrl: String) -> Int {
|
||||
for setting in self.serverSettings {
|
||||
if setting.serverUrl == serverUrl {
|
||||
if let index = self.serverSettings.firstIndex(of: setting) {
|
||||
return index
|
||||
}
|
||||
}
|
||||
}
|
||||
return NSNotFound
|
||||
}
|
||||
|
||||
func serverUrl() -> String? {
|
||||
if serverSettings.indices.contains(selectedIndex) {
|
||||
return serverSettings[selectedIndex].serverUrl
|
||||
|
||||
Reference in New Issue
Block a user