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 @@ -186,9 +186,6 @@ action.type === fullStateSyncActionType ) { const newThreadInfos = action.payload.threadInfos; - const updatedStore = { - threadInfos: newThreadInfos, - }; const threadStoreOperations = [ { type: 'remove_all', @@ -198,13 +195,12 @@ payload: { id, threadInfo: newThreadInfos[id] }, })), ]; - const processedStore = processThreadStoreOperations( + const updatedThreadStore = processThreadStoreOperations( state, threadStoreOperations, ); - assertThreadStoreThreadsAreEqual(processedStore, updatedStore, action.type); return { - threadStore: updatedStore, + threadStore: updatedThreadStore, newThreadInconsistencies: [], threadStoreOperations, };