Skip to content

armgit / ente

Public Imported from GitHub
0

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

fix: don't delete entity if collection null

Prateek Sunal19e353453b81
diff --git a/mobile/apps/photos/lib/services/smart_albums_service.dart b/mobile/apps/photos/lib/services/smart_albums_service.dart
index 2f0998a579..1bdff8fa83 100644
--- a/mobile/apps/photos/lib/services/smart_albums_service.dart
+++ b/mobile/apps/photos/lib/services/smart_albums_service.dart
@@ -108,7 +108,7 @@ class SmartAlbumsService {
_logger.warning(
"For config ($collectionId) user does not have permission",
);
- if (collection?.isDeleted ?? true) {
+ if (collection?.isDeleted ?? false) {
await _deleteEntry(
userId: userId,
collectionId: collectionId,