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 @@ -270,12 +270,6 @@ subscription: action.payload.subscription, }, }; - const updatedStore = { - threadInfos: { - ...state.threadInfos, - [action.payload.threadID]: newThreadInfo, - }, - }; const threadStoreOperations = [ { type: 'replace', @@ -285,13 +279,12 @@ }, }, ]; - const processedStore = processThreadStoreOperations( + const updatedThreadStore = processThreadStoreOperations( state, threadStoreOperations, ); - assertThreadStoreThreadsAreEqual(processedStore, updatedStore, action.type); return { - threadStore: updatedStore, + threadStore: updatedThreadStore, newThreadInconsistencies: [], threadStoreOperations, };