π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use better name
ashilkncde42eb43a72
diff --git a/mobile/lib/models/gallery/gallery_sections.dart b/mobile/lib/models/gallery/gallery_sections.dartindex b26fd0e84f..3c311dcf19 100644--- a/mobile/lib/models/gallery/gallery_sections.dart+++ b/mobile/lib/models/gallery/gallery_sections.dart@@ -182,18 +182,19 @@ class GalleryGroups {return groupLayouts;}+// TODO: compute this in isolatevoid _buildGroups() {- List<EnteFile> dailyFiles = [];+ List<EnteFile> groupFiles = [];for (int index = 0; index < allFiles.length; index++) {if (index > 0 &&!groupType.areFromSameGroup(allFiles[index - 1], allFiles[index])) {- _createNewGroup(dailyFiles);- dailyFiles = [];+ _createNewGroup(groupFiles);+ groupFiles = [];}- dailyFiles.add(allFiles[index]);+ groupFiles.add(allFiles[index]);}- if (dailyFiles.isNotEmpty) {- _createNewGroup(dailyFiles);+ if (groupFiles.isNotEmpty) {+ _createNewGroup(groupFiles);}}