π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Remove more loop syntax
laurenspriem8245ba0f9b3a
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dartindex 340a179640..fdfc3e382e 100644--- a/mobile/lib/services/smart_memories_service.dart+++ b/mobile/lib/services/smart_memories_service.dart@@ -486,7 +486,6 @@ class SmartMemoriesService {final lastTimeYouSawThemFiles = <EnteFile>[];int lastCreationTime = 0;bool longAgo = true;- fileLoop:for (final fileID in personFileIDs) {final file = allFileIdsToFile[fileID];if (file != null && file.creationTime != null) {@@ -495,7 +494,7 @@ class SmartMemoriesService {DateTime.fromMicrosecondsSinceEpoch(creationTime);if (currentTime.difference(creationDateTime).inDays < 365) {longAgo = false;- break fileLoop;+ break;}if (creationTime > lastCreationTime - microSecondsInDay) {final lastDateTime =@@ -1500,7 +1499,6 @@ class SmartMemoriesService {}final finalSelection = <Memory>[];- bucketLoop:for (final bucket in timeBuckets) {// Get X% most nostalgic photosfinal bucketFileIDs =@@ -1537,7 +1535,7 @@ class SmartMemoriesService {// If no selection yet, take the most nostalgic photoif (finalSelection.isEmpty) {finalSelection.add(mostNostalgic.first);- continue bucketLoop;+ continue;}// From nostalgic selection, take the photo furthest away from all currently selected ones