From d9dce4a881dc1dcffe32d246746fc173d7cef159 Mon Sep 17 00:00:00 2001 From: torta Date: Sun, 5 Jun 2022 19:06:29 +0800 Subject: [PATCH] Fix Continue Reading not show missed reading chapter if the latest chapter mark as read --- src/library/title.cr | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/library/title.cr b/src/library/title.cr index e9873f2..e2a112c 100644 --- a/src/library/title.cr +++ b/src/library/title.cr @@ -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