Skip to content

armgit / ente

Public Imported from GitHub
0

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

Retain prior behavior

Manav Rathida8b9daff047
diff --git a/web/apps/photos/src/pages/gallery.tsx b/web/apps/photos/src/pages/gallery.tsx
index 5410741b44..c0563fee08 100644
--- a/web/apps/photos/src/pages/gallery.tsx
+++ b/web/apps/photos/src/pages/gallery.tsx
@@ -685,10 +685,15 @@ const Page: React.FC = () => {
const fileOpHelper = (op: FileOp) => async () => {
showLoadingBar();
try {
- // passing files here instead of filteredData for hide ops because we want to move all files copies to hidden collection
const selectedFiles = getSelectedFiles(
selected,
- op == "hide" ? state.collectionFiles : filteredFiles,
+ op == "hide"
+ ? // passing files here instead of filteredData for hide ops
+ // because we want to move all files copies to hidden collection
+ state.collectionFiles.filter(
+ (f) => !state.hiddenFileIDs.has(f.id),
+ )
+ : filteredFiles,
);
const toProcessFiles =
op == "download"