From 12f60d812a413625d77ffe5ea2f42702f710e017 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Tue, 14 Jan 2020 15:55:38 +0100 Subject: [PATCH] Set default homeserver --- lib/views/login.dart | 2 +- lib/views/sign_up.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/login.dart b/lib/views/login.dart index 9a3cea5..0424ace 100644 --- a/lib/views/login.dart +++ b/lib/views/login.dart @@ -42,7 +42,7 @@ class _LoginState extends State { } String homeserver = serverController.text; - if (homeserver.isEmpty) homeserver = defaultHomeserver; + if (homeserver.isEmpty) homeserver = "matrix-client.matrix.org"; if (!homeserver.startsWith("https://")) { homeserver = "https://" + homeserver; } diff --git a/lib/views/sign_up.dart b/lib/views/sign_up.dart index b69a4e7..b6ef15b 100644 --- a/lib/views/sign_up.dart +++ b/lib/views/sign_up.dart @@ -51,7 +51,7 @@ class _SignUpState extends State { 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; }