[Room] Request history in getTimeline
This commit is contained in:
parent
137eb4c50d
commit
20f3cd4acc
|
@ -596,7 +596,12 @@ class Room {
|
|||
{onTimelineUpdateCallback onUpdate,
|
||||
onTimelineInsertCallback onInsert}) async {
|
||||
List<Event> events = [];
|
||||
if (client.store != null) events = await client.store.getEventList(this);
|
||||
if (client.store != null)
|
||||
events = await client.store.getEventList(this);
|
||||
else {
|
||||
prev_batch = "";
|
||||
requestHistory();
|
||||
}
|
||||
return Timeline(
|
||||
room: this,
|
||||
events: events,
|
||||
|
|
Loading…
Reference in a new issue