mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
Feature/3616 privacy on login
This commit is contained in:
+3
@@ -68,6 +68,7 @@ class AuthenticationService: NSObject {
|
||||
/// The type of client to use during the flow.
|
||||
var clientType: AuthenticationRestClient.Type = MXRestClient.self
|
||||
|
||||
var wellknown: MXWellKnown?
|
||||
// MARK: - Setup
|
||||
|
||||
init(sessionCreator: SessionCreatorProtocol = SessionCreator()) {
|
||||
@@ -236,6 +237,8 @@ class AuthenticationService: NSObject {
|
||||
var identityServerURL: URL?
|
||||
|
||||
if let wellKnown = try? await wellKnown(for: homeserverURL) {
|
||||
self.wellknown = wellKnown
|
||||
|
||||
if let baseURL = URL(string: wellKnown.homeServer.baseUrl) {
|
||||
homeserverURL = baseURL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user