From b55efb7f1134442968eb7168e7723083dcb36c14 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 21 May 2021 16:58:04 +0200 Subject: [PATCH] ensure updateEntries is always set in the result of GapWriter --- src/matrix/room/timeline/persistence/GapWriter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/persistence/GapWriter.js b/src/matrix/room/timeline/persistence/GapWriter.js index b1091afa..67668298 100644 --- a/src/matrix/room/timeline/persistence/GapWriter.js +++ b/src/matrix/room/timeline/persistence/GapWriter.js @@ -231,7 +231,7 @@ export class GapWriter { if (chunk.length === 0) { fragmentEntry.edgeReached = true; await txn.timelineFragments.update(fragmentEntry.fragment); - return {entries: [fragmentEntry], fragments: []}; + return {entries: [fragmentEntry], updatedEntries: [], fragments: []}; } // find last event in fragment so we get the eventIndex to begin creating keys at