Account for posts added by thread expansion when marking read from index.

This commit is contained in:
ccd0 2019-04-02 01:30:07 -07:00
parent 14dbde2895
commit a48e3c5b04

View File

@ -94,10 +94,7 @@ UnreadIndex =
markRead: -> markRead: ->
thread = Get.threadFromNode @ thread = Get.threadFromNode @
if Index.enabled lastPost = if Index.enabled then Index.lastPost(thread.ID) else 0
lastPost = Index.lastPost(thread.ID)
else
lastPost = 0
thread.posts.forEach (post) -> thread.posts.forEach (post) ->
if post.ID > lastPost and !post.isFetchedQuote if post.ID > lastPost and !post.isFetchedQuote
lastPost = post.ID lastPost = post.ID