mattermost-mobile-upstream/app
Cursor Agent 28d5f97cdb
Ignore deleted posts in SINCE/BEFORE/NEW PostsInChannel handlers (MM-66467)
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>
2026-07-31 19:24:46 +00:00
..
actions Self-heal a channel hidden by a post-less PostsInChannel interval 2026-07-31 19:19:50 +00:00
client Fix link to image proxy and correct padding in image sizing on blocks (#9976) 2026-07-30 13:41:26 +02:00
components [MM-70023] Consider attachment fields with no title for block translation (#9981) 2026-07-30 17:51:32 +02:00
constants [MM-69723, MM-69705] Version-gate ChannelBookmarks and CustomProfileAttributes for flag removal (#9916) 2026-07-29 17:14:33 -03:00
context Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
database Ignore deleted posts in SINCE/BEFORE/NEW PostsInChannel handlers (MM-66467) 2026-07-31 19:24:46 +00:00
helpers Migrate from RNN to Expo router (#9402) 2026-05-13 17:44:55 +08:00
hooks Fix shared value lifecycle in useKeyboardEvents (#9924) 2026-07-30 13:30:55 +00:00
i18n Add autotranslations (#9324) 2026-02-10 17:50:39 +01:00
init Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
keyboard resumes slide animation after stopping due to modal system dialog showing (#9792) 2026-05-29 06:50:57 +08:00
managers Mm 68767 zero persistence (#9803) 2026-07-16 13:55:45 +02:00
products [MM-68856] Respect default agent and persist last-selected agent in agent selectors (#9829) 2026-07-16 20:13:11 -04:00
queries [MM-69723, MM-69705] Version-gate ChannelBookmarks and CustomProfileAttributes for flag removal (#9916) 2026-07-29 17:14:33 -03:00
routes Route through usePropsFromParams for remaining stragglers (#9949) 2026-07-18 19:16:46 +03:00
screens fix(e2e): Quarantine proven flakes and harden Detox harness (#9971) 2026-07-30 02:40:23 +05:30
store fix: push notification navigation delay and stale in-app avatar (#9929) 2026-07-22 14:15:21 +02:00
utils Fix passing number strings through screen params (#9931) 2026-07-16 18:21:40 +02:00