diff options
| author | Christian Cleberg <[email protected]> | 2026-07-15 22:38:22 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-07-15 22:38:55 -0500 |
| commit | 3611d941247a7163fce9c61d8f75a81ddedd90b7 (patch) | |
| tree | 860872deabc628b7ecedd055a45269deb65a1844 /Hutch/Views/Inbox/ThreadViewModel.swift | |
| parent | b9ec80716ea015de5b6b31395fdc5ff03191398c (diff) | |
| download | hutch-3611d941247a7163fce9c61d8f75a81ddedd90b7.tar.gz hutch-3611d941247a7163fce9c61d8f75a81ddedd90b7.tar.bz2 hutch-3611d941247a7163fce9c61d8f75a81ddedd90b7.zip | |
fix: start a new account at zero unread
An absent view record read as unread, so on first sign-in every thread a list
had ever carried was unread. On a busy list that is thousands of threads the
user never intended to read, inflating the Home dashboard, the needs-attention
snapshot, and the widget with a number that means nothing.
Record a baseline when an account is activated: mail that predates it is read,
mail after it is not. activate() is the single funnel for launch validation,
account switching, and adding an account, so one call covers every sign-in path.
Accounts that already carry read state have been in use, so they get a
distantPast baseline and keep every unread thread they had — upgrading must not
silently mark a real backlog as read.
markUnread now records an explicit distantPast marker instead of deleting the
entry. Deleting would drop the thread back to the baseline rule, so marking an
old thread unread would appear to do nothing.
Diffstat (limited to 'Hutch/Views/Inbox/ThreadViewModel.swift')
0 files changed, 0 insertions, 0 deletions
