fix "mark all as read" in tag views marking the wrong entries (#2374)

This commit is contained in:
Athou
2026-11-09 06:08:40 +01:00
parent f6e30a77da
commit eb8626f0e1
9 changed files with 60 additions and 12 deletions

View File

@@ -126,8 +126,13 @@ export const markAllEntries = createAppAsyncThunk(
},
thunkApi
) => {
const endpoint = arg.sourceType === "category" ? client.category.markEntries : client.feed.markEntries
await endpoint(arg.req)
if (arg.sourceType === "tag") {
await client.category.markEntries({ ...arg.req, id: Constants.categories.all.id, tag: arg.req.id })
} else if (arg.sourceType === "category") {
await client.category.markEntries(arg.req)
} else {
await client.feed.markEntries(arg.req)
}
thunkApi.dispatch(reloadEntries())
thunkApi.dispatch(reloadTree())
}

View File

@@ -147,6 +147,7 @@ export interface MarkRequest {
insertedBefore?: number
keywords?: string
excludedSubscriptions?: number[]
tag?: string
}
export interface MetricCounter {