fix: remove mark-as-read on scroll — was marking everything read on load
All checks were successful
Security Checks / dependency-audit (push) Successful in 13s
Security Checks / secret-scanning (push) Successful in 4s
Security Checks / dockerfile-lint (push) Successful in 4s

.onAppear fires for all visible rows when the list renders, marking
everything as read immediately. Removed — entries only mark as read
when you tap into the article (handled in ArticleView).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Yusuf Suleman
2026-04-03 20:17:33 -05:00
parent 917a2c4621
commit 8cc58c23a0

View File

@@ -42,12 +42,6 @@ struct EntryListView: View {
}
.buttonStyle(.plain)
.contentShape(Rectangle())
.onAppear {
// Mark as read when scrolled into view (card mode)
if !entry.isRead {
Task { await vm.markAsRead(entry) }
}
}
.contextMenu {
entryContextMenu(entry: entry, vm: vm)
}