Skip to content

armgit / ente

Public Imported from GitHub
0

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

Update file loading logic to retrieve files from individual collections

AmanRajSinghMouryac39d21cfc095
diff --git a/mobile/apps/locker/lib/ui/pages/home_page.dart b/mobile/apps/locker/lib/ui/pages/home_page.dart
index f05b491950..4df899f9c4 100644
--- a/mobile/apps/locker/lib/ui/pages/home_page.dart
+++ b/mobile/apps/locker/lib/ui/pages/home_page.dart
@@ -450,7 +450,11 @@ class _HomePageState extends UploaderPageState<HomePage>
Future<void> _loadRecentFiles(List<Collection> collections) async {
final allFiles = <EnteFile>[];
- allFiles.addAll(await CollectionService.instance.getAllFiles());
+ for (final collection in collections) {
+ allFiles.addAll(
+ await CollectionService.instance.getFilesInCollection(collection),
+ );
+ }
final uniqueFiles = <EnteFile>[];
final seenHashes = <String>{};