From 30c049d10a2483c16437e37fd2b80830b7da7f34 Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 30 Oct 2026 20:54:56 +0100 Subject: [PATCH] fix infinite scroll not loading more search results when entries are already read (#2353) --- commafeed-client/src/app/entries/thunks.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commafeed-client/src/app/entries/thunks.ts b/commafeed-client/src/app/entries/thunks.ts index 989b7bec..8fe8f0da 100644 --- a/commafeed-client/src/app/entries/thunks.ts +++ b/commafeed-client/src/app/entries/thunks.ts @@ -40,7 +40,9 @@ export const loadMoreEntries = createAppAsyncThunk("entries/loadMore", async (_, const state = thunkApi.getState() const { source } = state.entries const offset = - state.user.settings?.readingMode === "all" || (source.type === "category" && source.id === "starred") + state.user.settings?.readingMode === "all" || + state.entries.search || + (source.type === "category" && source.id === "starred") ? state.entries.entries.length : state.entries.entries.filter(e => !e.read).length const endpoint = getEndpoint(state.entries.source.type)