Fix filtered posts appearing as unread replies in thread watcher even after thread is opened and all posts read.

This commit is contained in:
ccd0 2015-04-26 11:22:05 -07:00
parent 44a2dfe737
commit 9f148f2514

View File

@ -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