Skip to content

armgit / ente

Public Imported from GitHub
0

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

Randonmize person memories pick

laurenspriem614c3e0548a8
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index 56d56bdd45..94d3cc3b57 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -354,11 +354,7 @@ class SmartMemoriesService {
.where((person) => !person.data.isHidden)
.map((p) => p.remoteID)
.toList();
- orderedImportantPersonsID.sort((a, b) {
- final aFaces = personIdToFaceIDs[a]!.length;
- final bFaces = personIdToFaceIDs[b]!.length;
- return bFaces.compareTo(aFaces);
- });
+ orderedImportantPersonsID.shuffle(Random());
w?.log('orderedImportantPersonsID setup');
// Check if the user has assignmed "me"