Merge branch 'krille/fix-sort-rooms-initial-sync' into 'main'

fix: sortRooms should be triggered right before onSync is called

See merge request famedly/company/frontend/famedlysdk!967
This commit is contained in:
Krille Fear 2022-02-19 11:12:56 +00:00
commit 1876deafdc
1 changed files with 1 additions and 1 deletions

View File

@ -1255,7 +1255,6 @@ class Client extends MatrixApi {
() async => await _currentTransaction,
syncResp.itemCount,
);
_sortRooms();
onSyncStatus.add(SyncStatusUpdate(SyncStatus.cleaningUp));
} else {
await _handleSync(syncResp);
@ -1349,6 +1348,7 @@ class Client extends MatrixApi {
encryption?.handleDeviceOneTimeKeysCount(
sync.deviceOneTimeKeysCount, sync.deviceUnusedFallbackKeyTypes);
}
_sortRooms();
onSync.add(sync);
}