Merge branch 'krille/cannot-request-history-without-prevbatch' into 'main'
fix: canRequestHistory should return false if prev_batch is null See merge request famedly/company/frontend/famedlysdk!1311
This commit is contained in:
commit
b27222106d
|
|
@ -76,7 +76,7 @@ class Timeline {
|
|||
|
||||
bool get canRequestHistory {
|
||||
if (events.isEmpty) return true;
|
||||
return events.last.type != EventTypes.RoomCreate;
|
||||
return room.prev_batch != null && events.last.type != EventTypes.RoomCreate;
|
||||
}
|
||||
|
||||
Future<void> requestHistory(
|
||||
|
|
|
|||
Loading…
Reference in New Issue