sync: better /changes handling#5496
Conversation
…fetch infinite query data in useChannelPosts
|
Fwiw, tested this against the stale-posts-on-boot-from-notification issue. In my testing today, both this branch and develop seemed to have the same behavior: new messages would pop in after 7-8 seconds. |
…inks its at newest, pull syncSince out of batchEffects wrapper in syncStart
we chatted out of band, but the slow timing when opening from cold start seems to be the Tethering |
|
I'm still having trouble getting this to go green for the e2e tests
I'm slowly rolling back (what I thought were) inconsequential changes to try and isolate the issue |
…Posts pathway like subscription updates
Summary
Modifies the
/changesendpoint codepath toa) let the resulting DB updates propagate more quickly
b) provide a stronger guarantee that result Posts with higher sequence nums make their way to existing channel queries
Fixes TLON-5331
Fixes TLON-5332
Changes
syncStart, movesyncSinceahead of the longer High PrioritybatchEffects/changesand/heads, ensure they're appended touseChannelPostsresults using the same mechanism as subscription updatesHow did I test?
iOS/Android preview builds
Risks and impact