Use ordered flow for matrix.org and (kind of) homeserver defined order otherwise.

This commit is contained in:
Doug
2022-05-18 14:05:44 +01:00
committed by Doug
parent 37a42bc818
commit 2ff94e46c3
2 changed files with 8 additions and 1 deletions
@@ -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"
}
}
}