Merge branch 'MTRNord/perf-fix' into 'main'

fix: Remove sorts that shouldnt be required.

See merge request famedly/company/frontend/famedlysdk!936
This commit is contained in:
Nicolas Werner 2022-01-15 22:47:14 +00:00
commit 33b1302fc2
1 changed files with 0 additions and 2 deletions

View File

@ -1101,7 +1101,6 @@ class Client extends MatrixApi {
_rooms = rooms;
_sortRooms();
});
_sortRooms();
accountDataLoading =
database.getAccountData().then((data) => accountData = data);
presences.clear();
@ -1269,7 +1268,6 @@ class Client extends MatrixApi {
if (prevBatch == null) {
onFirstSync.add(true);
prevBatch = syncResp.nextBatch;
_sortRooms();
}
prevBatch = syncResp.nextBatch;
// ignore: unawaited_futures