This commit is contained in:
Manav Rathi
2024-05-31 14:29:28 +05:30
parent 72a3f7f17a
commit a850500beb
2 changed files with 8 additions and 1 deletions

View File

@@ -384,7 +384,6 @@ export default function Gallery() {
syncInterval.current = setInterval(() => {
syncWithRemote(false, true);
}, SYNC_INTERVAL_IN_MICROSECONDS);
fetchAndSaveFeatureFlagsIfNeeded();
if (electron) {
// void clipService.setupOnFileUploadListener();
electron.onMainWindowFocus(() => syncWithRemote(false, true));
@@ -715,6 +714,7 @@ export default function Gallery() {
await syncTrash(collections, setTrashedFiles);
await syncEntities();
await syncMapEnabled();
fetchAndSaveFeatureFlagsIfNeeded();
const electron = globalThis.electron;
if (electron) {
await syncCLIPEmbeddings();

View File

@@ -4,6 +4,7 @@ import { clipService } from "services/clip-service";
import DownloadManager from "./download";
import exportService from "./export";
import { clearFaceData } from "./face/db";
import { clearFeatureFlagSessionState } from "./feature-flag";
import mlWorkManager from "./machineLearning/mlWorkManager";
/**
@@ -19,6 +20,12 @@ export const photosLogout = async () => {
await accountLogout();
try {
clearFeatureFlagSessionState();
} catch (e) {
ignoreError("feature-flag", e);
}
try {
await DownloadManager.logout();
} catch (e) {