diff options
| author | Christian Cleberg <[email protected]> | 2026-07-15 22:51:41 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-15 22:51:41 -0500 |
| commit | 91023a6572354af7770309715d1d77e978298b0d (patch) | |
| tree | c15d307e2c93cd34599115f4e0f957e76b540324 /Hutch/Views/Projects/ProjectMailingListView.swift | |
| parent | 3611d941247a7163fce9c61d8f75a81ddedd90b7 (diff) | |
| download | hutch-91023a6572354af7770309715d1d77e978298b0d.tar.gz hutch-91023a6572354af7770309715d1d77e978298b0d.tar.bz2 hutch-91023a6572354af7770309715d1d77e978298b0d.zip | |
fix: let pull to refresh actually refresh Home
New mail showed as unread inside a mailing list but not on Home.
The list view reads threads with client.execute, so it always sees the server.
Home reads them with executeCached under cacheFirstThenRefresh, which returns
the cached value and only schedules a background fetch. loadDashboard had no way
to bypass that, so pulling to refresh could not surface mail that arrived after
the last fetch — it returned the same cache it already had and Home stayed a
cycle behind.
Thread forceRefresh through loadDashboard to the cached reads, and use it from
the pull to refresh on Home and Work. Matches loadSystemStatus(forceRefresh:),
which MoreView already refreshes this way.
The staleness predates the unread baseline. It was invisible while every thread
counted as unread, because Home always had a large number to show; now that Home
correctly ignores mail older than sign-in, a stale cache reads as a truthful 0.
Diffstat (limited to 'Hutch/Views/Projects/ProjectMailingListView.swift')
0 files changed, 0 insertions, 0 deletions
