Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Include zeroed coordinates in no-location search

Neeraj Guptab6138bed7e2b
diff --git a/mobile/apps/photos/lib/services/search_service.dart b/mobile/apps/photos/lib/services/search_service.dart
index 6cfc41aed8..d1bb129c72 100644
--- a/mobile/apps/photos/lib/services/search_service.dart
+++ b/mobile/apps/photos/lib/services/search_service.dart
@@ -741,9 +741,7 @@ class SearchService {
}
if (showNoLocation) {
final noLocationFiles = allFiles.where((file) {
- return file.isOwner &&
- file.location?.latitude == null &&
- file.location?.longitude == null;
+ return file.isOwner && !file.hasLocation;
}).toList();
if (noLocationFiles.isNotEmpty) {
searchResults.add(