From 9b235f7c80b105ab84eb8e1321dd0ae4725c55a6 Mon Sep 17 00:00:00 2001 From: Bruno Windels <274386+bwindels@users.noreply.github.com> Date: Fri, 25 Nov 2022 14:42:54 +0100 Subject: [PATCH] also test next next tile, change this back after testing before --- src/domain/session/room/timeline/TilesCollection.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/domain/session/room/timeline/TilesCollection.js b/src/domain/session/room/timeline/TilesCollection.js index 4dc6e4aa..458697ca 100644 --- a/src/domain/session/room/timeline/TilesCollection.js +++ b/src/domain/session/room/timeline/TilesCollection.js @@ -153,7 +153,7 @@ export class TilesCollection extends BaseObservableList { // the first of the two tiles may be a DateTile in which case, // we remove it after looking at the needsDateSeparator prop of the // next next tile - for (let i = 0; i < 2; i += 1) { + for (let i = 0; i < 3; i += 1) { const idx = tileIdx + i; if (idx >= this._tiles.length) { break;