fix "Mark all as read" ignoring active search filter (#2354)

This commit is contained in:
Athou
2026-10-30 21:08:27 +01:00
parent 30c049d10a
commit 4b091fb90b
2 changed files with 5 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ export function MarkAllAsReadConfirmationDialog() {
const source = useAppSelector(state => state.entries.source)
const sourceLabel = useAppSelector(state => state.entries.sourceLabel)
const entriesTimestamp = useAppSelector(state => state.entries.timestamp) ?? Date.now()
const search = useAppSelector(state => state.entries.search)
const markAllAsReadNavigateToNextUnread = useAppSelector(state => state.user.settings?.markAllAsReadNavigateToNextUnread)
const dispatch = useAppDispatch()
@@ -26,6 +27,7 @@ export function MarkAllAsReadConfirmationDialog() {
read: true,
olderThan: Date.now() - threshold * 24 * 60 * 60 * 1000,
insertedBefore: entriesTimestamp,
keywords: search,
},
})
)