Clear
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user