diff --git a/lib/src/room.dart b/lib/src/room.dart index 11db7672..92f5a4e2 100644 --- a/lib/src/room.dart +++ b/lib/src/room.dart @@ -1488,6 +1488,15 @@ class Room { } } + final timeline = Timeline( + room: this, + chunk: chunk, + onChange: onChange, + onRemove: onRemove, + onInsert: onInsert, + onNewEvent: onNewEvent, + onUpdate: onUpdate); + // Fetch all users from database we have got here. if (eventContextId == null) { for (final event in events) { @@ -1528,14 +1537,6 @@ class Room { } } - final timeline = Timeline( - room: this, - chunk: chunk, - onChange: onChange, - onRemove: onRemove, - onInsert: onInsert, - onNewEvent: onNewEvent, - onUpdate: onUpdate); return timeline; }