From 58f77cacdbb6e8df82b1e40fefa5286edb632bb6 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Mon, 28 Feb 2022 12:19:33 +0100 Subject: [PATCH] fix: Rooms sort order after login A two years old workaround prevented the room sorting for the initial sync. But this is definitely no longer needed. --- lib/src/client.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/client.dart b/lib/src/client.dart index d1dba62b..e607824b 100644 --- a/lib/src/client.dart +++ b/lib/src/client.dart @@ -1744,7 +1744,7 @@ class Client extends MatrixApi { .compareTo(a.timeCreated.millisecondsSinceEpoch); void _sortRooms() { - if (prevBatch == null || _sortLock || rooms.length < 2) return; + if (_sortLock || rooms.length < 2) return; _sortLock = true; rooms.sort(sortRoomsBy); _sortLock = false;