Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix textToFind

Sahil Yeole4651d9df68fe
diff --git a/flutter/lib/desktop/pages/connection_page.dart b/flutter/lib/desktop/pages/connection_page.dart
index e714d979f..beae21d8b 100644
--- a/flutter/lib/desktop/pages/connection_page.dart
+++ b/flutter/lib/desktop/pages/connection_page.dart
@@ -259,13 +259,13 @@ class _ConnectionPageState extends State<ConnectionPage>
}
else {
String textWithoutSpaces = textEditingValue.text.replaceAll(" ", "");
- String textToFind = textWithoutSpaces.toLowerCase();
if (int.tryParse(textWithoutSpaces) != null) {
textEditingValue = TextEditingValue(
text: textWithoutSpaces,
selection: textEditingValue.selection,
);
}
+ String textToFind = textEditingValue.text.toLowerCase();
return peers.where((peer) =>
peer.id.toLowerCase().contains(textToFind) ||