fixup: check for event entry with eventType, event isn't exposed anymore

This commit is contained in:
Bruno Windels 2019-07-29 19:58:35 +02:00
parent 7218595c17
commit 45cd85ead1

View File

@ -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;
}