π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Increase month selection to 20
laurenspriem78ae7c859574
diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dartindex 6b1532e63f..50f702d516 100644--- a/mobile/lib/services/search_service.dart+++ b/mobile/lib/services/search_service.dart@@ -1370,6 +1370,7 @@ class SearchService {const wantedMemories = 3;final neededMemories = wantedMemories - searchResults.length;if (neededMemories <= 0) return searchResults;+ const monthSelectionSize = 20;// Group files by month and yearfinal currentMonthYearGroups = <int, List<EnteFile>>{};@@ -1397,7 +1398,10 @@ class SearchService {if (sortedYearsForCurrentMonth.isEmpty) break;final year = sortedYearsForCurrentMonth.removeAt(0);final monthYearFiles = currentMonthYearGroups[year]!;- final photoSelection = await _bestSelection(monthYearFiles);+ final photoSelection = await _bestSelection(+ monthYearFiles,+ prefferedSize: monthSelectionSize,+ );final monthName =DateFormat.MMMM(Localizations.localeOf(context).languageCode).format(DateTime(year, currentMonth));@@ -1423,7 +1427,8 @@ class SearchService {final allPhotos = sortedYearsForCurrentMonth.expand((year) => currentMonthYearGroups[year]!).toList();- final photoSelection = await _bestSelection(allPhotos);+ final photoSelection =+ await _bestSelection(allPhotos, prefferedSize: monthSelectionSize);final monthName =DateFormat.MMMM(Localizations.localeOf(context).languageCode).format(DateTime(currentTime.year, currentMonth));