From 9f148f2514d08ac29ee1c454c0d5341186428e16 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 26 Apr 2015 11:22:05 -0700 Subject: [PATCH] Fix filtered posts appearing as unread replies in thread watcher even after thread is opened and all posts read. --- src/Monitoring/Unread.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 2934fce49..80a296297 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -154,6 +154,10 @@ Unread = Unread.update() read: $.debounce 100, (e) -> + # Update the lastReadPost when hidden posts are added to the thread. + if !Unread.posts.size and Unread.readCount isnt Unread.thread.posts.keys.length + Unread.saveLastReadPost() + return if d.hidden or !Unread.posts.size height = doc.clientHeight