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 @@ -52,7 +52,7 @@ import { getConfig } from '../utils/config'; import { sanitizeActionSecrets } from '../utils/sanitization'; -function reduceThreadUpdates( +function generateOpsForThreadUpdates( threadInfos: { +[id: string]: RawThreadInfo }, payload: { +updatesResult: { +newUpdates: $ReadOnlyArray, ... }, @@ -233,7 +233,7 @@ threadStoreOperations: [], }; } - const threadStoreOperations = reduceThreadUpdates( + const threadStoreOperations = generateOpsForThreadUpdates( state.threadInfos, action.payload, );