π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] small correction
laurenspriem95a27397d3ab
diff --git a/mobile/lib/services/search_service.dart b/mobile/lib/services/search_service.dartindex bdd87f5fe9..812ff8e8dd 100644--- a/mobile/lib/services/search_service.dart+++ b/mobile/lib/services/search_service.dart@@ -1414,8 +1414,8 @@ class SearchService {..sort((a, b) => b.compareTo(a)); // Recent years firstint round = 0;int skipped = 0;- filteredFiles.add(yearToFiles[years[0]]!.removeAt(0));- while (true) {+ whileLoop:+ while (filteredFiles.length + skipped < fileCount) {yearLoop:for (final year in years) {final yearFiles = yearToFiles[year]!;@@ -1439,7 +1439,7 @@ class SearchService {filteredFiles.add(newFile);if (filteredFiles.length >= targetSize ||filteredFiles.length + skipped >= fileCount) {- break;+ break whileLoop;}}round++;