From 45cd85ead12816fb06067cecb4ca163bc70fbcf4 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 29 Jul 2019 19:58:35 +0200 Subject: [PATCH] fixup: check for event entry with eventType, event isn't exposed anymore --- 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 5ca48561..b2afef57 100644 --- a/src/matrix/room/timeline/Timeline.js +++ b/src/matrix/room/timeline/Timeline.js @@ -54,7 +54,7 @@ export default class Timeline { // tries to prepend `amount` entries to the `entries` list. async loadAtTop(amount) { - const firstEventEntry = this._remoteEntries.array.find(e => !!e.event); + const firstEventEntry = this._remoteEntries.array.find(e => !!e.eventType); if (!firstEventEntry) { return; }