π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Fix remove from album when album filters are applied
Neeraj Guptad62fc4b42acd
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.dartindex 90ffd3e93b..3c68cb3b6c 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@@ -646,6 +646,21 @@ class CollectionActions {final Map<int, List<EnteFile>> collectionToFilesMap =await FilesDB.instance.getAllFilesGroupByCollectionID(uploadedIDs);+ // Fix files in pendingAssignMap with correct collectionID entries.+ // This is needed when files are selected after filtering by another album,+ // as the file's collectionID might point to the filtered album instead of+ // the current collection.+ final filesInCurrentCollection = collectionToFilesMap[collection.id];+ if (filesInCurrentCollection != null) {+ for (final file in filesInCurrentCollection) {+ if (file.uploadedFileID != null &&+ pendingAssignMap.containsKey(file.uploadedFileID) &&+ file.ownerID == currentUserID) {+ pendingAssignMap[file.uploadedFileID!] = file;+ }+ }+ }+// Find and map the files from current collection to to entries in other// collections. This mapping is done to avoid moving all the files to// uncategorized during remove from album.diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txtindex 4ce0fd4e79..52831a81f1 100644--- a/mobile/apps/photos/scripts/internal_changes.txt+++ b/mobile/apps/photos/scripts/internal_changes.txt@@ -1,6 +1,7 @@+- Fix remove from album [1](https://github.com/ente-io/ente/issues/7705)- Laurens: (i) Rituals redesign- Laurens: (i) Manual people tagging-- Prateek: (i) Pin/Unpin for "Shared with you" albums (mobile + web)+- Prateek: Pin/Unpin for "Shared with you" albums (mobile + web)- Ashil: New favorite icon- Prateek: Change behaviour of bottom action sheet for iOS (test every sheet)- Prateek: (i) Video streaming bitrate changes & enable streaming by default