Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Return when limit

laurenspriem92a718ca0f00
diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dart
index af0ff43913..0d3bf3f343 100644
--- a/mobile/lib/services/search_service.dart
+++ b/mobile/lib/services/search_service.dart
@@ -1285,7 +1285,7 @@ class SearchService {
}
}
- if (limit != null && searchResults.length >= limit) break;
+ if (limit != null && searchResults.length >= limit) return searchResults;
}
// process to find significant weeks (only if there are no significant days)
@@ -1362,6 +1362,8 @@ class SearchService {
}
}
+ if (limit != null && searchResults.length >= limit) return searchResults;
+
// process to find fillers
return searchResults;