Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

trim search query

Jacques Luckef749e1ee2262
diff --git a/mobile/lib/ui/viewer/search/search_widget.dart b/mobile/lib/ui/viewer/search/search_widget.dart
index 1461d37f99..ec297ce0a7 100644
--- a/mobile/lib/ui/viewer/search/search_widget.dart
+++ b/mobile/lib/ui/viewer/search/search_widget.dart
@@ -114,7 +114,7 @@ class SearchWidgetState extends State<SearchWidget> {
isLoading.value = true;
_debouncer.run(() async {
if (mounted) {
- query = textController.text;
+ query = textController.text.trim();
IndexOfStackNotifier().isSearchQueryEmpty = query.isEmpty;
searchResultsStreamNotifier.value =
_getSearchResultsStream(context, query);