fix: exclude current entry when mark above as read
This commit is contained in:
@@ -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(),
|
||||
})
|
||||
},
|
||||
|
||||
@@ -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(),
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user