Remove yet another unneeded use of unread post order.
This commit is contained in:
parent
a502db7f47
commit
00880478c4
@ -80,11 +80,12 @@ Unread =
|
|||||||
Unread.addPostQuotingYou post
|
Unread.addPostQuotingYou post
|
||||||
|
|
||||||
addPosts: (posts) ->
|
addPosts: (posts) ->
|
||||||
|
oldCount = Unread.posts.length
|
||||||
for post in posts
|
for post in posts
|
||||||
Unread.addPost post
|
Unread.addPost post
|
||||||
if Conf['Unread Line'] and not Conf['Quote Threading']
|
if Conf['Unread Line'] and not Conf['Quote Threading']
|
||||||
# Force line on visible threads if there were no unread posts previously.
|
# Force line on visible threads if there were no unread posts previously.
|
||||||
Unread.setLine Unread.posts.first?.data in posts
|
Unread.setLine (oldCount is 0 and Unread.posts.length isnt 0)
|
||||||
Unread.read()
|
Unread.read()
|
||||||
Unread.update()
|
Unread.update()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user