diff --git a/lib/reducers/thread-reducer.js b/lib/reducers/thread-reducer.js --- a/lib/reducers/thread-reducer.js +++ b/lib/reducers/thread-reducer.js @@ -249,20 +249,16 @@ threadStoreOperations: [], }; } - const { - threadStoreOperations, - threadInfos: newThreadInfos, - } = reduceThreadUpdates(state.threadInfos, action.payload); - const updatedStore = { - threadInfos: newThreadInfos, - }; - const processedStore = processThreadStoreOperations( + const { threadStoreOperations } = reduceThreadUpdates( + state.threadInfos, + action.payload, + ); + const updatedThreadStore = processThreadStoreOperations( state, threadStoreOperations, ); - assertThreadStoreThreadsAreEqual(processedStore, updatedStore, action.type); return { - threadStore: updatedStore, + threadStore: updatedThreadStore, newThreadInconsistencies: [], threadStoreOperations, };