Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Don't show hidden persons

laurenspriemae2c47f236bc
diff --git a/mobile/lib/services/smart_memories_service.dart b/mobile/lib/services/smart_memories_service.dart
index fdfc3e382e..638a16824f 100644
--- a/mobile/lib/services/smart_memories_service.dart
+++ b/mobile/lib/services/smart_memories_service.dart
@@ -325,7 +325,7 @@ class SmartMemoriesService {
}
}
final List<String> orderedImportantPersonsID =
- persons.map((p) => p.remoteID).toList();
+ persons.where((person) => !person.data.isHidden).map((p) => p.remoteID).toList();
orderedImportantPersonsID.sort((a, b) {
final aFaces = personIdToFaceIDs[a]!.length;
final bFaces = personIdToFaceIDs[b]!.length;