Merge pull request #2693 from krille-chan/krille/login-with-localhost

chore: Login with localhost
This commit is contained in:
Krille-chan 2026-03-12 18:31:12 +01:00 committed by GitHub
commit eea4e431b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ class SignInViewModel extends ValueNotifier<SignInState> {
.toList() ??
[];
if (filterText.length >= 3 &&
filterText.contains('.') &&
(filterText.contains('.') || filterText == 'localhost') &&
Uri.tryParse(filterText) != null &&
!filteredPublicHomeservers.any(
(homeserver) => homeserver.name == filterText,