Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Exclude deleted albums from auto-move targets during album deletion

AmanRajSinghMouryaf3ff387ec5d4
diff --git a/mobile/apps/photos/lib/ui/actions/collection/collection_sharing_actions.dart b/mobile/apps/photos/lib/ui/actions/collection/collection_sharing_actions.dart
index 06de154cc0..d62c9c6be3 100644
--- a/mobile/apps/photos/lib/ui/actions/collection/collection_sharing_actions.dart
+++ b/mobile/apps/photos/lib/ui/actions/collection/collection_sharing_actions.dart
@@ -748,9 +748,10 @@ class CollectionActions {
}
final Collection? targetCollection =
collectionsService.getCollectionByID(toCollectionID);
- // ignore non-cached collections, uncategorized and favorite
- // collections and collections ignored by others
+ // ignore non-cached, deleted, uncategorized and favorite collections,
+ // and collections ignored by others
if (targetCollection == null ||
+ targetCollection.isDeleted ||
(CollectionType.uncategorized == targetCollection.type ||
targetCollection.type == CollectionType.favorites) ||
targetCollection.owner.id != userID) {