diff --git a/cmd/main.go b/cmd/main.go index 7bd6371..0a5eeed 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -139,7 +139,8 @@ func (m Model) updateViewport(msg tea.Msg) (Model, tea.Cmd) { m.viewport.SetContent(view) } - if m.context.curr == "reader" && m.viewport.ScrollPercent() >= lib.UserConfig.Reader.ReadThreshold { + // HACK: if the previous was mixed we never marked the post as read + if m.context.curr == "reader" && m.context.prev == "mixed" && m.viewport.ScrollPercent() >= lib.UserConfig.Reader.ReadThreshold { lib.MarkRead(m.context.feeds, m.context.feed.ID, m.context.post.ID) }