From bd6653ff88f501384725d46b0836e8c2eb6a97cd Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 25 Jul 2025 01:50:04 +0200 Subject: [PATCH] Consider unread chapters only for "mark prev as read" Otherwise, the "last read at" timestamp gets unintentionally updated --- .../chapter/components/actions/ChapterActionMenuItems.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/chapter/components/actions/ChapterActionMenuItems.tsx b/src/modules/chapter/components/actions/ChapterActionMenuItems.tsx index f9e6942f..98cef3ca 100644 --- a/src/modules/chapter/components/actions/ChapterActionMenuItems.tsx +++ b/src/modules/chapter/components/actions/ChapterActionMenuItems.tsx @@ -150,7 +150,9 @@ export const ChapterActionMenuItems = ({ return []; } - return allChapters.slice(index + 1); + const previousChapters = allChapters.slice(index + 1); + + return Chapters.getNonRead(previousChapters); }; const chaptersToUpdate = getChapters();