Except the post_timings table doesn’t track when the posts were viewed. I think the source of the problem is in topic_user.rb:
user.update_posts_read!(post_number - before_last_read, mobile: opts[:mobile])
It should be counting how many of those posts qualify for counting. If topic is not private message, only count regular posts (not whispers, etc.) between post numbers before_last_read and post_number, etc. And don’t count more than the count of PostTiming records the user has in the topic. I’ll give it a try.