From 3ce2d0777d8e94fbd68085e3c413b09af0dd8d24 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Wed, 8 Sep 2021 14:48:19 -0700 Subject: [PATCH] Add new fragment to list of updated fragment list --- src/matrix/room/timeline/persistence/GapWriter.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/matrix/room/timeline/persistence/GapWriter.js b/src/matrix/room/timeline/persistence/GapWriter.js index 40ae5420..b03626b4 100644 --- a/src/matrix/room/timeline/persistence/GapWriter.js +++ b/src/matrix/room/timeline/persistence/GapWriter.js @@ -257,6 +257,10 @@ export class GapWriter { startFill.entries.push(...endFill.entries); startFill.updatedEntries.push(...endFill.updatedEntries); startFill.fragments.push(...endFill.fragments); + if (!startFill.fragments.includes(newFragment)) { + // We created the fragment so it is updated. + startFill.fragments.push(newFragment); + } return startFill; }