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 @@ -58,12 +58,9 @@ function generateOpsForThreadUpdates( threadInfos: RawThreadInfos, - payload: { - +updatesResult: { +newUpdates: $ReadOnlyArray, ... }, - ... - }, + newUpdates: $ReadOnlyArray, ): $ReadOnlyArray { - return payload.updatesResult.newUpdates + return newUpdates .map(update => updateSpecs[update.type].generateOpsForThreadUpdates?.( threadInfos, @@ -241,7 +238,7 @@ } const threadStoreOperations = generateOpsForThreadUpdates( state.threadInfos, - action.payload, + newUpdates, ); const updatedThreadStore = processThreadStoreOperations( state,