fix: sortAtTheEnd for LeftRoomUpdate was not set

This fixes a bug where requesting
history on archived room leads to a
wrong sorted timeline.
This commit is contained in:
Christian Pauly 2021-08-25 11:06:26 +02:00
parent e1343e9c83
commit 5621c9bdb0
1 changed files with 2 additions and 1 deletions

View File

@ -1305,7 +1305,8 @@ class Client extends MatrixApi {
await _handleRoomEvents(
id,
room.timeline.events.map((i) => i.toJson()).toList(),
EventUpdateType.timeline);
EventUpdateType.timeline,
sortAtTheEnd: sortAtTheEnd);
handledEvents = true;
}
if (room.accountData?.isNotEmpty ?? false) {