Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Sync face embeddings only for internal users

Manav Rathi6613d57989b8
diff --git a/web/apps/photos/src/pages/gallery/index.tsx b/web/apps/photos/src/pages/gallery/index.tsx
index d9df6b9400..e28a85e05f 100644
--- a/web/apps/photos/src/pages/gallery/index.tsx
+++ b/web/apps/photos/src/pages/gallery/index.tsx
@@ -133,6 +133,7 @@ import {
} from "utils/file";
import { isArchivedFile } from "utils/magicMetadata";
import { getSessionExpiredMessage } from "utils/ui";
+import { isInternalUserForML } from "utils/user";
import { getLocalFamilyData } from "utils/user/family";
export const DeadCenter = styled("div")`
@@ -703,7 +704,7 @@ export default function Gallery() {
await syncMapEnabled();
await syncCLIPEmbeddings();
const electron = globalThis.electron;
- if (electron) {
+ if (isInternalUserForML() && electron) {
await syncFileEmbeddings();
}
if (clipService.isPlatformSupported()) {