π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Use edited dates in trip layout
Anand Baburajan401ecf4718a8
diff --git a/web/apps/photos/src/components/TripLayout/hooks/useFileViewer.ts b/web/apps/photos/src/components/TripLayout/hooks/useFileViewer.tsindex 015ab1ed44..b58ff27142 100644--- a/web/apps/photos/src/components/TripLayout/hooks/useFileViewer.ts+++ b/web/apps/photos/src/components/TripLayout/hooks/useFileViewer.ts@@ -1,4 +1,5 @@import { type EnteFile } from "ente-media/file";+import { fileCreationTime } from "ente-media/file-metadata";import { useCallback, useState } from "react";import type { JourneyPoint } from "../types";@@ -29,9 +30,7 @@ export const useFileViewer = ({// Sort cluster files by creation timeconst sortedClusterFiles = [...clusterFiles].sort(- (a, b) =>- new Date(a.metadata.creationTime / 1000).getTime() -- new Date(b.metadata.creationTime / 1000).getTime(),+ (a, b) => fileCreationTime(a) - fileCreationTime(b),);// Find the index of the clicked photo in the cluster filesdiff --git a/web/apps/photos/src/components/TripLayout/utils/dataProcessing.ts b/web/apps/photos/src/components/TripLayout/utils/dataProcessing.tsindex fe2e643e2a..af0e772612 100644--- a/web/apps/photos/src/components/TripLayout/utils/dataProcessing.ts+++ b/web/apps/photos/src/components/TripLayout/utils/dataProcessing.ts@@ -1,6 +1,10 @@import { downloadManager } from "ente-gallery/services/download";import { type EnteFile } from "ente-media/file";-import { fileFileName, fileLocation } from "ente-media/file-metadata";+import {+ fileCreationTime,+ fileFileName,+ fileLocation,+} from "ente-media/file-metadata";import React from "react";import type { JourneyPoint } from "../types";@@ -43,7 +47,7 @@ export const processPhotosData = ({name: finalName,country: finalCountry,timestamp: new Date(- file.metadata.creationTime / 1000,+ fileCreationTime(file) / 1000,).toISOString(),image: "",fileId: file.id,