Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Return false if file doesn't have location data on checking if a file matches a location filter

ashilkn05b14ac32ef7
diff --git a/mobile/lib/models/search/hierarchical/location_filter.dart b/mobile/lib/models/search/hierarchical/location_filter.dart
index 3e90d3c5dd..4ea379dfd4 100644
--- a/mobile/lib/models/search/hierarchical/location_filter.dart
+++ b/mobile/lib/models/search/hierarchical/location_filter.dart
@@ -25,7 +25,7 @@ class LocationFilter extends HierarchicalSearchFilter {
@override
bool isMatch(EnteFile file) {
- assert(file.hasLocation);
+ if (!file.hasLocation) return false;
return isFileInsideLocationTag(
locationTag.centerPoint,
file.location!,