From 4044ac56c59cd9252302b22b2bd111efe49e539a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 17 Aug 2020 17:58:30 +0200 Subject: [PATCH] actually check the promise --- src/ui/web/session/room/TimelineList.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ui/web/session/room/TimelineList.js b/src/ui/web/session/room/TimelineList.js index a5f75b7c..d350c708 100644 --- a/src/ui/web/session/room/TimelineList.js +++ b/src/ui/web/session/room/TimelineList.js @@ -41,6 +41,9 @@ export class TimelineList extends ListView { } async _loadAtTopWhile(predicate) { + if (this._topLoadingPromise) { + return; + } try { while (predicate()) { // fill, not enough content to fill timeline