Skip to content

Commit f179dcb

Browse files
authored
fix(app): only run session.updated archive logic if archive state changes (#27637)
1 parent fd6a852 commit f179dcb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎packages/app/src/context/global-sync/event-reducer.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,7 @@ export function applyDirectoryEvent(input: {
125125
const info = (event.properties as { info: Session }).info
126126
const result = Binary.search(input.store.session, info.id, (s) => s.id)
127127
if (info.time.archived) {
128+
if (input.store.session[result.index]!.time.archived === info.time.archived) break
128129
if (result.found) {
129130
input.setStore(
130131
"session",

0 commit comments

Comments
 (0)