Set default homeserver

This commit is contained in:
Christian Pauly 2020-01-14 15:55:38 +01:00
parent 4d027ff7f9
commit 12f60d812a
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ class _LoginState extends State<Login> {
} }
String homeserver = serverController.text; String homeserver = serverController.text;
if (homeserver.isEmpty) homeserver = defaultHomeserver; if (homeserver.isEmpty) homeserver = "matrix-client.matrix.org";
if (!homeserver.startsWith("https://")) { if (!homeserver.startsWith("https://")) {
homeserver = "https://" + homeserver; homeserver = "https://" + homeserver;
} }

View file

@ -51,7 +51,7 @@ class _SignUpState extends State<SignUp> {
usernameController.text.toLowerCase().replaceAll(" ", "-"); usernameController.text.toLowerCase().replaceAll(" ", "-");
String homeserver = serverController.text; String homeserver = serverController.text;
if (homeserver.isEmpty) homeserver = defaultHomeserver; if (homeserver.isEmpty) homeserver = "matrix-client.matrix.org";
if (!homeserver.startsWith("https://")) { if (!homeserver.startsWith("https://")) {
homeserver = "https://" + homeserver; homeserver = "https://" + homeserver;
} }