Merge branch 'room-fix-requesthistory-in-gettimeline' into 'master'
[Room] Request history in getTimeline See merge request famedly/famedlysdk!77
This commit is contained in:
commit
544e153c24
|
@ -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