mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-22 03:18:12 +00:00
The MM-66467 fix filtered delete_at !== 0 posts out of interval math in handleReceivedPostsInChannel only. The three sibling handlers still build PostsInChannel intervals from raw posts, so a batch made up entirely of deleted posts (getPostsSince returns deleted posts) can still create a zero-row interval when the channel has none, or stretch interval bounds to a deleted post's create_at. A zero-row interval with the greatest `latest` is exactly the state that renders a channel blank. Apply the same filter to handleReceivedPostsInChannelSince, handleReceivedPostsInChannelBefore and handleReceivedNewPostForChannel: compute interval edges from live posts only, and skip the interval update with a logDebug when no post in the batch survives persistence. Regression tests reproduce each symptom against the unfixed handlers. Co-authored-by: Jesse Hallam <lieut-data@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| components | ||
| exceptions | ||
| manager | ||
| migration | ||
| models | ||
| operator | ||
| recovery | ||
| schema | ||
| subscription | ||