Skip to content

Commit

Permalink
fix(posts-saga): remove receiveChannel from reset function to prevent…
Browse files Browse the repository at this point in the history
… interference with message state (#2492)
  • Loading branch information
domw30 authored Dec 5, 2024
1 parent 0fd8beb commit b61fdfc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/store/posts/saga.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,13 +294,7 @@ function* refetchPosts(action) {
yield put({ type: SagaActionTypes.FetchPosts, payload: { channelId } });
}

function* reset(action) {
yield call(receiveChannel, {
id: action.payload.conversationId,
// messages: [],
hasMorePosts: true,
hasLoadedMessages: false,
});
function* reset(_action) {
yield put(setError(undefined));
yield put(setIsSubmitting(false));
yield put(setInitialCount(undefined));
Expand Down

0 comments on commit b61fdfc

Please sign in to comment.