[mob] Fix keepPhotos behaviour for hiddenCollections

This commit is contained in:
Neeraj Gupta 2024-05-07 11:34:05 +05:30
parent aee1c5e88c
commit 307aaa4c21

View file

@ -439,7 +439,12 @@ class CollectionActions {
) async {
final List<EnteFile> files =
await FilesDB.instance.getAllFilesCollection(collection.id);
await moveFilesFromCurrentCollection(bContext, collection, files);
await moveFilesFromCurrentCollection(
bContext,
collection,
files,
isHidden: collection.isHidden() && !collection.isDefaultHidden(),
);
// collection should be empty on server now
await collectionsService.trashEmptyCollection(collection);
}