From bec061239a2d489a803c5cde2523ab039d7402f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Wed, 1 Apr 2020 15:17:59 +0200 Subject: [PATCH] EventIndex: Mark the initial checkpoints for a full crawl. The logic determining if a batch of events is already in the database has been reported to be faulty. Since we know that when we add initial checkpoints they need to go to the start of the timeline we can mark them to do a full crawl which will skip the test if the events are already in the database. This is a quick fix for this and checkpoints that are added after a gap in the timeline might incorrectly conclude the same resulting in missing events if there was a gap and the issue is triggered. --- src/indexing/EventIndex.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/indexing/EventIndex.js b/src/indexing/EventIndex.js index 14257af014..69939d0f32 100644 --- a/src/indexing/EventIndex.js +++ b/src/indexing/EventIndex.js @@ -109,6 +109,7 @@ export default class EventIndex extends EventEmitter { roomId: room.roomId, token: token, direction: "b", + fullCrawl: true, }; const forwardCheckpoint = {