rewrite Unread.sync
This commit is contained in:
parent
6e0772ed5d
commit
437f04729d
@ -62,11 +62,8 @@ Unread =
|
|||||||
return unless Unread.lastReadPost < lastReadPost
|
return unless Unread.lastReadPost < lastReadPost
|
||||||
Unread.lastReadPost = lastReadPost
|
Unread.lastReadPost = lastReadPost
|
||||||
|
|
||||||
post = Unread.posts.first
|
for ID in Unread.thread.posts.keys
|
||||||
while post
|
break if +ID > Unread.lastReadPost
|
||||||
break if post.ID > Unread.lastReadPost
|
|
||||||
{ID} = post
|
|
||||||
post = post.next
|
|
||||||
Unread.posts.rm ID
|
Unread.posts.rm ID
|
||||||
delete Unread.postsQuotingYou[ID]
|
delete Unread.postsQuotingYou[ID]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user