chore: Follow up search for homeserver

This commit is contained in:
Christian Kußowski 2026-03-05 14:36:18 +01:00
parent febd0e6b41
commit 18d98d96c6
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

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