π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Untrig
Manav Rathi02c428971c7a
diff --git a/web/apps/photos/src/services/sync.ts b/web/apps/photos/src/services/sync.tsindex 5530b42753..1c3a9b9d95 100644--- a/web/apps/photos/src/services/sync.ts+++ b/web/apps/photos/src/services/sync.ts@@ -6,10 +6,7 @@ import {wipClusterEnable,} from "@/new/photos/services/ml";import { syncCGroups } from "@/new/photos/services/ml/cgroups";-import {- rereadCGroups,- triggerSearchDataSync,-} from "@/new/photos/services/search";+import { rereadCGroups, searchDataSync } from "@/new/photos/services/search";import { syncMapEnabled } from "services/userService";/**@@ -39,14 +36,13 @@ export const preFileInfoSync = async () => {* libraries after initial login), and the `preFileInfoSync`, which is called* before doing the file sync and thus should run immediately after login.*/-export const sync = async () => {- await Promise.all([+export const sync = () =>+ Promise.all([syncMapEnabled(),process.env.NEXT_PUBLIC_ENTE_WIP_CL &&wipClusterEnable().then((enable) =>enable ? syncCGroups().then(rereadCGroups) : undefined,),isMLSupported && mlSync(),+ searchDataSync(),]);- triggerSearchDataSync();-};diff --git a/web/packages/new/photos/services/search/index.ts b/web/packages/new/photos/services/search/index.tsindex 0caa185eca..220bc50e64 100644--- a/web/packages/new/photos/services/search/index.ts+++ b/web/packages/new/photos/services/search/index.ts@@ -48,8 +48,8 @@ export const logoutSearch = () => {/*** Fetch any data that would be needed if the user were to search.*/-export const triggerSearchDataSync = () =>- void worker().then((w) => masterKeyFromSession().then((k) => w.sync(k)));+export const searchDataSync = () =>+ worker().then((w) => masterKeyFromSession().then((k) => w.sync(k)));/*** Set the collections and files over which we should search.