summaryrefslogtreecommitdiffhomepage
path: root/packages/desktop/src/context
diff options
context:
space:
mode:
Diffstat (limited to 'packages/desktop/src/context')
-rw-r--r--packages/desktop/src/context/local.tsx5
1 files changed, 5 insertions, 0 deletions
diff --git a/packages/desktop/src/context/local.tsx b/packages/desktop/src/context/local.tsx
index b04c70f0f..276f87192 100644
--- a/packages/desktop/src/context/local.tsx
+++ b/packages/desktop/src/context/local.tsx
@@ -467,6 +467,11 @@ function init() {
return sync.session.get(store.active)
})
+ createEffect(() => {
+ if (!store.active) return
+ sync.session.sync(store.active)
+ })
+
return {
active,
setActive(sessionId: string | undefined) {