fix: fixed mxid input method, removed code redundancy

This commit is contained in:
Kateřina Churanová 2020-10-11 13:25:06 +02:00
commit 5b2e945d69
2 changed files with 0 additions and 7 deletions

View file

@ -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) {