Skip to content

armgit / ente

Public Imported from GitHub
0

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

Early stop if no persons

laurenspriem9e7833bf93fc
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index 73fe7f1639..92d2f7d0b5 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -342,6 +342,7 @@ class SmartMemoriesService {
w?.log('allFiles setup');
// Get ordered (random) list of important people
+ if (persons.isEmpty) return [];
final personIdToPerson = <String, PersonEntity>{};
final personIdToFaceIDs = <String, Set<String>>{};
final personIdToFileIDs = <String, Set<int>>{};