matrix-js-sdk
matrix-js-sdk copied to clipboard
Refactor Sync and fix `initialSyncLimit`
Cleans up Sync::sync to have a clearer control flow
Cleans up Sync::doSync to be a while loop rather than tail recursion due to poor stackframes
Cleans up Sync::doSync error handling to not grow the stack frame via indirect recursion
Fixes initialSyncLimit support which previously affected filter for all Syncs, rather than just the initial one
Here's what your changelog entry will look like:
🐛 Bug Fixes
- Refactor Sync and fix
initialSyncLimit(#2587).