mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
reload entries after marking everything as read, as commafeed 2.x does
This commit is contained in:
@@ -128,6 +128,7 @@ export const markAllEntries = createAsyncThunk<void, { sourceType: EntrySourceTy
|
|||||||
async (arg, thunkApi) => {
|
async (arg, thunkApi) => {
|
||||||
const endpoint = arg.sourceType === "category" ? client.category.markEntries : client.feed.markEntries
|
const endpoint = arg.sourceType === "category" ? client.category.markEntries : client.feed.markEntries
|
||||||
await endpoint(arg.req)
|
await endpoint(arg.req)
|
||||||
|
thunkApi.dispatch(reloadEntries())
|
||||||
thunkApi.dispatch(reloadTree())
|
thunkApi.dispatch(reloadTree())
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user