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.
This commit is contained in:
Krille Fear 2022-02-28 12:19:33 +01:00
parent 7005a4ae68
commit 58f77cacdb
1 changed files with 1 additions and 1 deletions

View File

@ -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;