reload entries after marking everything as read, as commafeed 2.x does

This commit is contained in:
Athou
2022-11-15 08:24:18 +01:00
parent 9466bc544c
commit fa58b1e53f

View File

@@ -128,6 +128,7 @@ export const markAllEntries = createAsyncThunk<void, { sourceType: EntrySourceTy
async (arg, thunkApi) => {
const endpoint = arg.sourceType === "category" ? client.category.markEntries : client.feed.markEntries
await endpoint(arg.req)
thunkApi.dispatch(reloadEntries())
thunkApi.dispatch(reloadTree())
}
)