From f179dcbf02fc48c7521c0e4da44ca752da2c7b30 Mon Sep 17 00:00:00 2001 From: Brendan Allan <14191578+Brendonovich@users.noreply.github.com> Date: Fri, 15 May 2026 09:42:47 +0800 Subject: [PATCH] fix(app): only run session.updated archive logic if archive state changes (#27637) --- packages/app/src/context/global-sync/event-reducer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/app/src/context/global-sync/event-reducer.ts b/packages/app/src/context/global-sync/event-reducer.ts index 13d34ef6c5..5b72d37f9d 100644 --- a/packages/app/src/context/global-sync/event-reducer.ts +++ b/packages/app/src/context/global-sync/event-reducer.ts @@ -125,6 +125,7 @@ export function applyDirectoryEvent(input: { const info = (event.properties as { info: Session }).info const result = Binary.search(input.store.session, info.id, (s) => s.id) if (info.time.archived) { + if (input.store.session[result.index]!.time.archived === info.time.archived) break if (result.found) { input.setStore( "session",