From 8ce0966987a0de46d64307c02f729a290f2f3cf3 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Mon, 15 Dec 2025 10:13:29 -0600 Subject: wip(desktop): progress --- packages/desktop/src/context/global-sync.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/desktop/src/context/global-sync.tsx') diff --git a/packages/desktop/src/context/global-sync.tsx b/packages/desktop/src/context/global-sync.tsx index bebce64d7..77640c090 100644 --- a/packages/desktop/src/context/global-sync.tsx +++ b/packages/desktop/src/context/global-sync.tsx @@ -100,7 +100,7 @@ export const { use: useGlobalSync, provider: GlobalSyncProvider } = createSimple async function loadSessions(directory: string) { globalSDK.client.session.list({ directory }).then((x) => { - const oneHourAgo = Date.now() - 60 * 60 * 1000 + const fourHoursAgo = Date.now() - 4 * 60 * 60 * 1000 const nonArchived = (x.data ?? []) .slice() .filter((s) => !s.time.archived) @@ -109,7 +109,7 @@ export const { use: useGlobalSync, provider: GlobalSyncProvider } = createSimple const sessions = nonArchived.filter((s, i) => { if (i < 5) return true const updated = new Date(s.time.updated).getTime() - return updated > oneHourAgo + return updated > fourHoursAgo }) const [, setStore] = child(directory) setStore("session", sessions) -- cgit v1.2.3