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 @@ -315,12 +315,6 @@ }; } if (Object.keys(changedThreadInfos).length !== 0) { - const updatedStore = { - threadInfos: { - ...state.threadInfos, - ...changedThreadInfos, - }, - }; const threadStoreOperations = Object.keys(changedThreadInfos).map(id => ({ type: 'replace', payload: { @@ -328,17 +322,12 @@ threadInfo: changedThreadInfos[id], }, })); - const processedStore = processThreadStoreOperations( + const updatedThreadStore = processThreadStoreOperations( state, threadStoreOperations, ); - assertThreadStoreThreadsAreEqual( - processedStore, - updatedStore, - action.type, - ); return { - threadStore: updatedStore, + threadStore: updatedThreadStore, newThreadInconsistencies: [], threadStoreOperations, };