mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Use ordered flow for matrix.org and (kind of) homeserver defined order otherwise.
This commit is contained in:
@@ -43,5 +43,11 @@ struct AuthenticationState {
|
||||
|
||||
/// The response returned when querying the homeserver for registration flows.
|
||||
var registrationFlow: RegistrationResult?
|
||||
|
||||
/// Whether or not the homeserver is for matrix.org.
|
||||
var isMatrixDotOrg: Bool {
|
||||
guard let url = URL(string: address) else { return false }
|
||||
return url.host == "matrix.org" || url.host == "matrix-client.matrix.org"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user