Merge pull request #1653 from famedly/krille/do-not-miss-event-updates-timeline
refactor: Connect timeline to event updates earlier
This commit is contained in:
commit
5d892a8007
|
|
@ -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.
|
// Fetch all users from database we have got here.
|
||||||
if (eventContextId == null) {
|
if (eventContextId == null) {
|
||||||
for (final event in events) {
|
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;
|
return timeline;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue