From 5621c9bdb050d4cca9d6fbe28b2938c561d03248 Mon Sep 17 00:00:00 2001 From: Christian Pauly Date: Wed, 25 Aug 2021 11:06:26 +0200 Subject: [PATCH] fix: sortAtTheEnd for LeftRoomUpdate was not set This fixes a bug where requesting history on archived room leads to a wrong sorted timeline. --- lib/src/client.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index 8033f54c..68f76790 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -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) {