π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
only as attr
Manav Rathi55a21c123321
diff --git a/web/apps/photos/src/components/Collections/CollectionHeader.tsx b/web/apps/photos/src/components/Collections/CollectionHeader.tsxindex 1efa848da6..a82b780fb1 100644--- a/web/apps/photos/src/components/Collections/CollectionHeader.tsx+++ b/web/apps/photos/src/components/Collections/CollectionHeader.tsx@@ -587,7 +587,7 @@ const EmptyTrashQuickOption: React.FC<OptionProps> = ({ onClick }) => (</Tooltip>);-const showDownloadQuickOption = ({ type, attributes }: CollectionSummary) =>+const showDownloadQuickOption = ({ type }: CollectionSummary) =>type == "album" ||type == "folder" ||type == "favorites" ||@@ -596,9 +596,7 @@ const showDownloadQuickOption = ({ type, attributes }: CollectionSummary) =>type == "incomingShareViewer" ||type == "incomingShareCollaborator" ||type == "outgoingShare" ||- type == "sharedOnlyViaLink" ||- attributes.has("archived") ||- type == "pinned";+ type == "sharedOnlyViaLink"type DownloadQuickOptionProps = OptionProps & {collectionSummaryType: CollectionSummaryType;@@ -625,16 +623,14 @@ const DownloadQuickOption: React.FC<DownloadQuickOptionProps> = ({</Tooltip>);-const showShareQuickOption = ({ type, attributes }: CollectionSummary) =>+const showShareQuickOption = ({ type }: CollectionSummary) =>type == "album" ||type == "folder" ||type == "favorites" ||type == "outgoingShare" ||type == "sharedOnlyViaLink" ||- attributes.has("archived") ||type == "incomingShareViewer" ||- type == "incomingShareCollaborator" ||- type == "pinned";+ type == "incomingShareCollaborator"interface ShareQuickOptionProps {onClick: () => void;diff --git a/web/packages/new/photos/components/gallery/reducer.ts b/web/packages/new/photos/components/gallery/reducer.tsindex d3469eb0c6..a274d53c2e 100644--- a/web/packages/new/photos/components/gallery/reducer.ts+++ b/web/packages/new/photos/components/gallery/reducer.ts@@ -1417,11 +1417,6 @@ const createCollectionSummaries = (type = "sharedOnlyViaLink";} else if (isDefaultHiddenCollection(collection)) {type = "defaultHidden";- } else if (- collection.magicMetadata?.data.order == CollectionOrder.pinned- ) {- type = "pinned";- sortPriority = CollectionSummarySortPriority.pinned;} else {type = collectionType;}@@ -1451,6 +1446,7 @@ const createCollectionSummaries = (}if (collection.magicMetadata?.data.order == CollectionOrder.pinned) {attributes.add("pinned");+ sortPriority = CollectionSummarySortPriority.pinned;}switch (collectionType) {case "favorites":diff --git a/web/packages/new/photos/services/collection-summary.ts b/web/packages/new/photos/services/collection-summary.tsindex a4254abdb9..aba70552f7 100644--- a/web/packages/new/photos/services/collection-summary.ts+++ b/web/packages/new/photos/services/collection-summary.ts@@ -11,8 +11,7 @@ export type CollectionSummaryType =| "outgoingShare"| "incomingShareViewer"| "incomingShareCollaborator"- | "sharedOnlyViaLink"- | "pinned";+ | "sharedOnlyViaLink";export type CollectionSummaryAttribute =| CollectionType