mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-12 14:10:14 +00:00
The bugs manual testing found were not in what this screen computes but in whether its gate was reachable at all, so the test renders the container against a real in-memory database and lets the real markChannelAsViewed run first, the way switchToChannel does on every channel open. Passing props by hand would have gone green on both of them. Covers: no read while the server still has posts the user has not seen, an immediate read when there is nothing left to see, a read once the separator is reported, a report ignored while another screen is on top, and a retry after a failed read. Verified by reintroducing the optimistic clear bug, which fails the first and fourth cases. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| actions | ||
| client | ||
| components | ||
| constants | ||
| context | ||
| database | ||
| helpers | ||
| hooks | ||
| i18n | ||
| init | ||
| keyboard | ||
| managers | ||
| products | ||
| queries | ||
| routes | ||
| screens | ||
| store | ||
| utils | ||