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:
		
						commit
						1876deafdc
					
				|  | @ -1255,7 +1255,6 @@ class Client extends MatrixApi { | ||||||
|           () async => await _currentTransaction, |           () async => await _currentTransaction, | ||||||
|           syncResp.itemCount, |           syncResp.itemCount, | ||||||
|         ); |         ); | ||||||
|         _sortRooms(); |  | ||||||
|         onSyncStatus.add(SyncStatusUpdate(SyncStatus.cleaningUp)); |         onSyncStatus.add(SyncStatusUpdate(SyncStatus.cleaningUp)); | ||||||
|       } else { |       } else { | ||||||
|         await _handleSync(syncResp); |         await _handleSync(syncResp); | ||||||
|  | @ -1349,6 +1348,7 @@ class Client extends MatrixApi { | ||||||
|       encryption?.handleDeviceOneTimeKeysCount( |       encryption?.handleDeviceOneTimeKeysCount( | ||||||
|           sync.deviceOneTimeKeysCount, sync.deviceUnusedFallbackKeyTypes); |           sync.deviceOneTimeKeysCount, sync.deviceUnusedFallbackKeyTypes); | ||||||
|     } |     } | ||||||
|  |     _sortRooms(); | ||||||
|     onSync.add(sync); |     onSync.add(sync); | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue