Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] filter ineligible auto-add albums

r4khul54b8352ff98b
diff --git a/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart b/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart
index bc88c30b17..fd99cc3c5f 100644
--- a/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart
+++ b/mobile/apps/photos/lib/ui/collections/collection_action_sheet.dart
@@ -329,6 +329,12 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
collections.removeWhere((c) => recentIds.contains(c.id));
}
+ if (widget.actionType == CollectionActionType.autoAddPeople) {
+ final userID = Configuration.instance.getUserID()!;
+ collections.removeWhere((c) => !c.canAutoAdd(userID));
+ recentCollections.removeWhere((c) => !c.canAutoAdd(userID));
+ }
+
List<Collection> sharedCollections = [];
if (widget.actionType == CollectionActionType.moveFiles) {
sharedCollections = _getSharedCollections();