π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web] Show files that are archived in two ways in the archive section
Manav Rathiba314455e2a5
diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.tsindex 83b98f1f28..7bd98fda94 100644--- a/web/packages/new/photos/components/gallery/reducer.ts+++ b/web/packages/new/photos/components/gallery/reducer.ts@@ -1190,14 +1190,13 @@ const deriveAlbumsFilteredFiles = (if (hiddenFileIDs.has(file.id)) return false;if (tempHiddenFileIDs.has(file.id)) return false;- // Files in archived collections can only be seen in their respective- // collection.- if (archivedCollectionIDs.has(file.collectionID)) {- return activeCollectionSummaryID === file.collectionID;- }-// Archived files can only be seen in the archive section, or in their// respective collection.+ //+ // Note that a file may both be archived, AND be part of an archived+ // collection. Such files should be shown in both the archive section+ // and in their respective collection. Thus this (archived file) case+ // needs to be before the following (archived collection) case.if (isArchivedFile(file)) {return (activeCollectionSummaryID === ARCHIVE_SECTION ||@@ -1205,6 +1204,12 @@ const deriveAlbumsFilteredFiles = ();}+ // Files in archived collections can only be seen in their respective+ // collection.+ if (archivedCollectionIDs.has(file.collectionID)) {+ return activeCollectionSummaryID === file.collectionID;+ }+// Show all remaining (non-hidden, non-archived) files in "All".if (activeCollectionSummaryID === ALL_SECTION) {return true;