From 381a12db204b25c8c91964ec642933109b35a32b Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Thu, 16 Sep 2021 16:34:13 +0200 Subject: [PATCH] load 20 entries initially in timeline, otherwise it flickers a bit --- src/matrix/room/timeline/Timeline.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 2a9cfec7..23980b9d 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -75,7 +75,7 @@ export class Timeline { // choose good amount here between showing messages initially and // not spending too much time decrypting messages before showing the timeline. // more messages should be loaded automatically until the viewport is full by the view if needed. - const readerRequest = this._disposables.track(this._timelineReader.readFromEnd(5, txn, log)); + const readerRequest = this._disposables.track(this._timelineReader.readFromEnd(20, txn, log)); try { const entries = await readerRequest.complete(); this._setupEntries(entries);