Page MenuHomePhabricator

D12365.id41188.diff
No OneTemporary

D12365.id41188.diff

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<ClientUpdateInfo>, ... },
- ...
- },
+ newUpdates: $ReadOnlyArray<ClientUpdateInfo>,
): $ReadOnlyArray<ThreadStoreOperation> {
- 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,

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 2:07 AM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679221
Default Alt Text
D12365.id41188.diff (854 B)

Event Timeline