π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'main' into file-download-location
Abhinavedfdc5dd1ec7
diff --cc apps/photos/src/pages/gallery/index.tsxindex 74bcd4704e,22bf877781..7f5a2e4c69--- a/apps/photos/src/pages/gallery/index.tsx+++ b/apps/photos/src/pages/gallery/index.tsx@@@ -133,10 -130,9 +132,13 @@@ import { ClipService } from 'services/cimport isElectron from 'is-electron';import downloadManager from 'services/download';import { APPS } from '@ente/shared/apps/constants';+import {+ FilesDownloadProgress,+ FilesDownloadProgressAttributes,+} from 'components/FilesDownloadProgress';+ import locationSearchService from 'services/locationSearchService';+ import ComlinkSearchWorker from 'utils/comlink/ComlinkSearchWorker';+ import useEffectSingleThreaded from '@ente/shared/hooks/useEffectSingleThreaded';export const DeadCenter = styled('div')`flex: 1;@@@ -917,12 -856,19 +901,20 @@@ export default function Gallery()await handleFileOps(ops,toProcessFiles,- setDeletedFileIds,- setHiddenFileIds,+ setTempDeletedFileIds,+ setTempHiddenFileIds,- setFixCreationTimeAttributes+ setFixCreationTimeAttributes,+ setFilesDownloadProgressAttributesCreator);}+ if (+ selected?.ownCount === filteredData?.length &&+ ops !== FILE_OPS_TYPE.ARCHIVE &&+ ops !== FILE_OPS_TYPE.DOWNLOAD &&+ ops !== FILE_OPS_TYPE.FIX_TIME+ ) {+ setActiveCollectionID(ALL_SECTION);+ }clearSelection();await syncWithRemote(false, true);} catch (e) {diff --cc apps/photos/src/utils/collection/index.tsindex 13bee5b8dc,2737a41d84..2c50e99345--- a/apps/photos/src/utils/collection/index.ts+++ b/apps/photos/src/utils/collection/index.ts@@@ -50,6 -51,8 +50,7 @@@ importgetUniqueCollectionExportName,} from 'utils/export';import exportService from 'services/export';-import { CollectionDownloadProgressAttributes } from 'components/Collections/CollectionDownloadProgress';+ import { addLogLine } from '@ente/shared/logging';export enum COLLECTION_OPS_TYPE {ADD,diff --cc apps/photos/src/utils/file/index.tsindex 13dd0474d0,2e1561296f..a2756c3284--- a/apps/photos/src/utils/file/index.ts+++ b/apps/photos/src/utils/file/index.ts@@@ -966,25 -873,17 +966,25 @@@ export const handleFileOps = async) => {switch (ops) {case FILE_OPS_TYPE.TRASH:- await deleteFileHelper(files, false, setDeletedFileIds);+ await deleteFileHelper(files, false, setTempDeletedFileIds);break;case FILE_OPS_TYPE.DELETE_PERMANENTLY:- await deleteFileHelper(files, true, setDeletedFileIds);+ await deleteFileHelper(files, true, setTempDeletedFileIds);break;case FILE_OPS_TYPE.HIDE:- await hideFilesHelper(files, setHiddenFileIds);+ await hideFilesHelper(files, setTempHiddenFileIds);break;- case FILE_OPS_TYPE.DOWNLOAD:- await downloadFiles(files);+ case FILE_OPS_TYPE.DOWNLOAD: {+ const setSelectedFileDownloadProgressAttributes =+ setFilesDownloadProgressAttributesCreator(+ `${files.length} ${t('FILES')}`+ );+ await downloadSelectedFiles(+ files,+ setSelectedFileDownloadProgressAttributes+ );break;+ }case FILE_OPS_TYPE.FIX_TIME:fixTimeHelper(files, setFixCreationTimeAttributes);break;