Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356237
D4187.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
977 B
Referenced Files
None
Subscribers
None
D4187.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
@@ -249,20 +249,16 @@
threadStoreOperations: [],
};
}
- const {
- threadStoreOperations,
- threadInfos: newThreadInfos,
- } = reduceThreadUpdates(state.threadInfos, action.payload);
- const updatedStore = {
- threadInfos: newThreadInfos,
- };
- const processedStore = processThreadStoreOperations(
+ const { threadStoreOperations } = reduceThreadUpdates(
+ state.threadInfos,
+ action.payload,
+ );
+ const updatedThreadStore = processThreadStoreOperations(
state,
threadStoreOperations,
);
- assertThreadStoreThreadsAreEqual(processedStore, updatedStore, action.type);
return {
- threadStore: updatedStore,
+ threadStore: updatedThreadStore,
newThreadInconsistencies: [],
threadStoreOperations,
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 5:36 PM (21 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576885
Default Alt Text
D4187.diff (977 B)
Attached To
Mode
D4187: [lib] Update `threadStore` with `threadStoreOps` for joinThread.success/leaveThread.success/deleteThread.success/etc actions
Attached
Detach File
Event Timeline
Log In to Comment