Skip to content

armgit / ente

Public Imported from GitHub
0

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

Prevent showing old search results

laurenspriem055f85af7464
diff --git a/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart b/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart
index edcfe93cb4..f78b5bf5a5 100644
--- a/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart
+++ b/mobile/apps/photos/lib/ui/viewer/search/search_suggestions.dart
@@ -84,6 +84,7 @@ class _SearchSuggestionsWidgetState extends State<SearchSuggestionsWidget> {
void releaseResources() {
subscription?.cancel();
timer?.cancel();
+ queueOfSearchResults.clear();
}
///This method generates searchResultsWidgets from the queueOfEvents by checking