Merge branch 'shine/mxid-input-fix-and-redundancy-removal' into 'main'
fix: fixed mxid input method, removed code redundancy See merge request ChristianPauly/fluffychat-flutter!217
This commit is contained in:
commit
de3bd1c71e
@ -30,12 +30,6 @@ class HomeserverPicker extends StatelessWidget {
|
||||
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(
|
||||
Matrix.of(context).client.checkServer(homeserver));
|
||||
if (success != false) {
|
||||
|
@ -131,7 +131,6 @@ class _LoginState extends State<Login> {
|
||||
readOnly: loading,
|
||||
autocorrect: false,
|
||||
autofocus: true,
|
||||
keyboardType: TextInputType.emailAddress,
|
||||
onChanged: (t) => _checkWellKnownWithCoolDown(t, context),
|
||||
controller: usernameController,
|
||||
decoration: InputDecoration(
|
||||
|
Loading…
Reference in New Issue
Block a user