Page MenuHomePhabricator

D12365.diff
No OneTemporary

D12365.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
Thu, Dec 19, 11:54 PM (20 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2679221
Default Alt Text
D12365.diff (854 B)

Event Timeline