Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: remove support for favorites and uncateogrized albums

Prateek Sunalb4ebc8482ff4
diff --git a/mobile/apps/photos/lib/models/collection/collection.dart b/mobile/apps/photos/lib/models/collection/collection.dart
index 35d4a5167a..ffb60673c5 100644
--- a/mobile/apps/photos/lib/models/collection/collection.dart
+++ b/mobile/apps/photos/lib/models/collection/collection.dart
@@ -142,7 +142,9 @@ class Collection {
bool canAutoAdd(int userID) {
final canEditCollection = isOwner(userID) ||
getRole(userID) == CollectionParticipantRole.collaborator;
- return canEditCollection && !isDeleted;
+ final isFavoritesOrUncategorized = type == CollectionType.favorites ||
+ type == CollectionType.uncategorized;
+ return canEditCollection && !isDeleted && !isFavoritesOrUncategorized;
}
bool isDownloadEnabledForPublicLink() {