Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3492434
D12365.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
854 B
Referenced Files
None
Subscribers
None
D12365.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12365: [lib] Simplify param to generateOpsForThreadUpdates
Attached
Detach File
Event Timeline
Log In to Comment