From 31ad3373d5bac168cf1bdc46c3030400a4bbfdf4 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Tue, 29 Apr 2025 11:03:19 +0800 Subject: [PATCH] fix: exclude current entry when mark above as read --- .../layer/renderer/src/modules/command/commands/entry.tsx | 2 +- apps/mobile/src/modules/context-menu/entry.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/desktop/layer/renderer/src/modules/command/commands/entry.tsx b/apps/desktop/layer/renderer/src/modules/command/commands/entry.tsx index 8ffbca1d4..ad6654795 100644 --- a/apps/desktop/layer/renderer/src/modules/command/commands/entry.tsx +++ b/apps/desktop/layer/renderer/src/modules/command/commands/entry.tsx @@ -301,7 +301,7 @@ export const useRegisterEntryCommands = () => { label: t("entry_actions.mark_above_as_read"), run: ({ publishedAt }: { publishedAt: string }) => { return markAllByRoute({ - startTime: new Date(publishedAt).getTime(), + startTime: new Date(publishedAt).getTime() + 1, endTime: Date.now(), }) }, diff --git a/apps/mobile/src/modules/context-menu/entry.tsx b/apps/mobile/src/modules/context-menu/entry.tsx index 59415451c..05b214b00 100644 --- a/apps/mobile/src/modules/context-menu/entry.tsx +++ b/apps/mobile/src/modules/context-menu/entry.tsx @@ -73,7 +73,7 @@ export const EntryItemContextMenu = ({ view: selectedView, filter: payload, time: { - startTime: new Date(publishedAt).getTime(), + startTime: new Date(publishedAt).getTime() + 1, endTime: Date.now(), }, })