mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-16 17:09:31 +01:00
fix: fixed mxid input method, removed code redundancy
This commit is contained in:
parent
48d4caf4f0
commit
060156ce12
@ -30,12 +30,6 @@ class HomeserverPicker extends StatelessWidget {
|
|||||||
homeserver = 'https://$homeserver';
|
homeserver = 'https://$homeserver';
|
||||||
}
|
}
|
||||||
|
|
||||||
// removes trailing spaces and slash from url if present (api errors on it)
|
|
||||||
homeserver = homeserver.trim();
|
|
||||||
if (homeserver.endsWith('/')) {
|
|
||||||
homeserver = homeserver.substring(0, homeserver.length - 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
final success = await SimpleDialogs(context).tryRequestWithLoadingDialog(
|
final success = await SimpleDialogs(context).tryRequestWithLoadingDialog(
|
||||||
Matrix.of(context).client.checkServer(homeserver));
|
Matrix.of(context).client.checkServer(homeserver));
|
||||||
if (success != false) {
|
if (success != false) {
|
||||||
|
@ -131,7 +131,6 @@ class _LoginState extends State<Login> {
|
|||||||
readOnly: loading,
|
readOnly: loading,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
keyboardType: TextInputType.emailAddress,
|
|
||||||
onChanged: (t) => _checkWellKnownWithCoolDown(t, context),
|
onChanged: (t) => _checkWellKnownWithCoolDown(t, context),
|
||||||
controller: usernameController,
|
controller: usernameController,
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
|
Loading…
Reference in New Issue
Block a user