Skip to content

Commit

Permalink
feat(network): don't filter historical ephemeral events (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbraingames authored Aug 13, 2023
1 parent a258811 commit cca3b46
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/network/src/workers/SyncWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,7 @@ export class SyncWorker<C extends Components> implements DoWork<Input, NetworkEv
);

// Merge initial state, gap state and live events since initial sync started
storeEvents(
initialState,
[...gapStateEvents, ...initialLiveEvents].filter((e) => !e.ephemeral)
);
storeEvents(initialState, [...gapStateEvents, ...initialLiveEvents]);
cacheStore.current = initialState;
devObservables.cacheStore$.next(cacheStore.current);
debug(`initial sync state size: ${cacheStore.current.state.size}`);
Expand Down

0 comments on commit cca3b46

Please sign in to comment.