mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-21 19:08:16 +00:00
Pull-to-refresh on a channel does a plain page-0 fetch, which is exactly the thing that cannot recover a channel hidden by bad PostsInChannel bookkeeping: the interval it creates sorts below the bad one, so the list keeps rendering the bad interval and stays empty. Refreshing is also the moment the user is telling us the screen looks wrong, so it is a good place to escalate. refreshPostsForChannel now takes whether the list is rendering nothing. When it is, and the channel still has non-deleted posts stored, those posts are hidden rather than absent: clear the channel's cached posts and re-fetch from scratch, the same recovery as "Reset cached messages". Otherwise -- posts on screen, or a genuinely empty channel -- keep the previous page fetch. This covers the cases the interval prune cannot: an interval that holds posts none of which the list renders (all replies with CRT on, or only join/leave messages with that preference off) survives the prune but still shows nothing. The blankness signal is `orderedPosts`, i.e. what the list actually renders after preparePostList, so it accounts for the filtering the prune's DB-level check cannot see. The warning it logs (channel id and a count, no PII) is also the breadcrumb that was missing from the report that started this. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| categories.ts | ||
| channel_bookmark.ts | ||
| channel.nomock.test.ts | ||
| channel.test.ts | ||
| channel.ts | ||
| custom_emoji.ts | ||
| custom_profile.test.ts | ||
| custom_profile.ts | ||
| drafts.ts | ||
| entry.test.ts | ||
| entry.ts | ||
| features.ts | ||
| file.ts | ||
| group.ts | ||
| post.test.ts | ||
| post.ts | ||
| preference.test.ts | ||
| preference.ts | ||
| properties.test.ts | ||
| properties.ts | ||
| reaction.ts | ||
| role.test.ts | ||
| role.ts | ||
| scheduled_post.test.ts | ||
| scheduled_post.ts | ||
| security.test.ts | ||
| security.ts | ||
| system.test.ts | ||
| system.ts | ||
| team.test.ts | ||
| team.ts | ||
| terms_of_service.test.ts | ||
| terms_of_service.ts | ||
| thread.ts | ||
| user.ts | ||