Set default homeserver
This commit is contained in:
parent
4d027ff7f9
commit
12f60d812a
|
@ -42,7 +42,7 @@ class _LoginState extends State<Login> {
|
|||
}
|
||||
|
||||
String homeserver = serverController.text;
|
||||
if (homeserver.isEmpty) homeserver = defaultHomeserver;
|
||||
if (homeserver.isEmpty) homeserver = "matrix-client.matrix.org";
|
||||
if (!homeserver.startsWith("https://")) {
|
||||
homeserver = "https://" + homeserver;
|
||||
}
|
||||
|
|
|
@ -51,7 +51,7 @@ class _SignUpState extends State<SignUp> {
|
|||
usernameController.text.toLowerCase().replaceAll(" ", "-");
|
||||
|
||||
String homeserver = serverController.text;
|
||||
if (homeserver.isEmpty) homeserver = defaultHomeserver;
|
||||
if (homeserver.isEmpty) homeserver = "matrix-client.matrix.org";
|
||||
if (!homeserver.startsWith("https://")) {
|
||||
homeserver = "https://" + homeserver;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue