diff --git a/src/matrix/room/timeline/Timeline.js b/src/matrix/room/timeline/Timeline.js index 6247b4c7..8cad17a1 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -75,6 +75,9 @@ export class Timeline { // tries to prepend `amount` entries to the `entries` list. async loadAtTop(amount) { + if (this._disposables.isDisposed) { + return; + } const firstEventEntry = this._remoteEntries.array.find(e => !!e.eventType); if (!firstEventEntry) { return;