Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Remove too small trips

laurenspriem5a0d2ba922d9
diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dart
index 09fd29fbfd..3227f4b77b 100644
--- a/mobile/lib/services/search_service.dart
+++ b/mobile/lib/services/search_service.dart
@@ -1439,6 +1439,14 @@ class SearchService {
mergedTrips[tripID] = (trip.$1, trip.$3, trip.$4);
}
+ // Remove too small trips
+ for (final tripID in mergedTrips.keys.toList()) {
+ final filesAmount = mergedTrips[tripID]!.$1.length;
+ if (filesAmount < 20) {
+ mergedTrips.remove(tripID);
+ }
+ }
+
// TODO: lau: Check if there are any trips to surface
// For now for testing let's just surface all base and trip locations
for (final baseLocation in baseLocations.values) {