π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[web] Fix navbar in uncategorized section
Manav Rathid2c1255a1c03
diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.tsindex cc20ab6f7b..b78ca9e1d3 100644--- a/web/packages/new/photos/components/gallery/reducer.ts+++ b/web/packages/new/photos/components/gallery/reducer.ts@@ -1042,6 +1042,18 @@ const deriveCollectionSummaries = (files,);+ const uncategorizedCollection = collections.find(+ ({ type }) => type === CollectionType.uncategorized,+ );+ if (!uncategorizedCollection) {+ collectionSummaries.set(DUMMY_UNCATEGORIZED_COLLECTION, {+ ...pseudoCollectionOptionsForFiles([]),+ id: DUMMY_UNCATEGORIZED_COLLECTION,+ type: "uncategorized",+ name: t("section_uncategorized"),+ });+ }+const allSectionFiles = findAllSectionVisibleFiles(files,archivedCollectionIDs,@@ -1118,12 +1130,7 @@ const createCollectionSummaries = (const filesByCollection = groupFilesByCollectionID(files);const coverFiles = findCoverFiles(collections, filesByCollection);- let hasUncategorizedCollection = false;for (const collection of collections) {- if (collection.type === CollectionType.uncategorized) {- hasUncategorizedCollection = true;- }-let type: CollectionSummaryType;if (isIncomingShare(collection, user)) {if (isIncomingCollabShare(collection, user)) {@@ -1184,15 +1191,6 @@ const createCollectionSummaries = (});}- if (!hasUncategorizedCollection) {- collectionSummaries.set(DUMMY_UNCATEGORIZED_COLLECTION, {- ...pseudoCollectionOptionsForFiles([]),- id: DUMMY_UNCATEGORIZED_COLLECTION,- type: "uncategorized",- name: t("section_uncategorized"),- });- }-return collectionSummaries;};