fix(home): clear Home dot when any one home tab is read to the top

The previous attempt lit the dot whenever *any* enabled home tab had unread
items, so a user with all three tabs enabled who only scrolled through the
Everything tab still saw the dot — HomeFollows / HomeFollowsReplies stayed at
their old lastRead even though the same content had been read via Everything.

Switch to "every enabled tab still has unread" — equivalently, reaching the
top of any single enabled tab clears the dot. This matches the pre-bug
behavior (where only the New Threads tab gated the dot) while still respecting
users who only enable the Everything tab.
This commit is contained in:
Claude
2026-05-13 11:01:08 +00:00
parent 2784f274ec
commit c7eba6a620
@@ -438,9 +438,11 @@ class AccountViewModel(
// HomeScreen falls back to the New Threads tab when the user disables every tab.
threadsHas
} else {
(showThreads && threadsHas) ||
(showReplies && repliesHas) ||
(showEverything && everythingHas)
// Dot stays lit only when every enabled tab still has unread items.
// Reaching the top of any single tab marks its newest item read and clears the dot.
(!showThreads || threadsHas) &&
(!showReplies || repliesHas) &&
(!showEverything || everythingHas)
}
}