rewrite Unread.sync

This commit is contained in:
ccd0 2014-11-22 23:16:36 -08:00
parent 6e0772ed5d
commit 437f04729d

View File

@ -62,11 +62,8 @@ Unread =
return unless Unread.lastReadPost < lastReadPost
Unread.lastReadPost = lastReadPost
post = Unread.posts.first
while post
break if post.ID > Unread.lastReadPost
{ID} = post
post = post.next
for ID in Unread.thread.posts.keys
break if +ID > Unread.lastReadPost
Unread.posts.rm ID
delete Unread.postsQuotingYou[ID]