Fix Continue Reading not show missed reading chapter if the latest chapter mark as read

This commit is contained in:
torta 2022-06-05 19:06:29 +08:00
parent 2d97faa7c0
commit d9dce4a881

View File

@ -632,6 +632,15 @@ class Title
if last_read_entry && last_read_entry.finished? username
last_read_entry = last_read_entry.next_entry username
# Get the last read entry in greedy
if last_read_entry.nil?
sorted_entries(username).each do |e|
unless e.finished? username
last_read_entry = e
break
end
end
end
end
last_read_entry