mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-24 04:59:26 +01:00
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 New Issue
Block a user