fix: remove support for favorites and uncateogrized albums

This commit is contained in:
Prateek Sunal
2025-07-31 17:55:04 +05:30
parent 9b42f06152
commit b4ebc8482f

View File

@@ -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() {