Skip to content

armgit / ente

Public Imported from GitHub
0

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

Fixed comment

Neeraj Guptaf662d01f5863
diff --git a/lib/services/search_service.dart b/lib/services/search_service.dart
index 9217bdcf4f..8bad9b3968 100644
--- a/lib/services/search_service.dart
+++ b/lib/services/search_service.dart
@@ -731,6 +731,8 @@ class SearchService {
tagToItemsMap[tag]!.add(file);
}
}
+ // If the location tag already exists for a city, do not consider
+ // it for the city suggestions
if (!hasLocationTag) {
filesWithNoLocTag.add(file);
}
@@ -769,7 +771,6 @@ class SearchService {
..sort((a, b) => results[b]!.length.compareTo(results[a]!.length));
for (final city in sortedByResultCount) {
if (results[city]!.length <= 1) continue;
- // If the location tag already exists for a city, don't add it again
tagSearchResults.add(
GenericSearchResult(
ResultType.locationSuggestion,