Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32268417
D12365.1765253564.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D12365.1765253564.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
Tue, Dec 9, 4:12 AM (17 m, 35 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5852495
Default Alt Text
D12365.1765253564.diff (854 B)
Attached To
Mode
D12365: [lib] Simplify param to generateOpsForThreadUpdates
Attached
Detach File
Event Timeline
Log In to Comment