Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3176922
D4193.id13415.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
929 B
Referenced Files
None
Subscribers
None
D4193.id13415.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
@@ -473,12 +473,6 @@
...state.threadInfos[threadID],
currentUser: updatedUser,
};
- const updatedStore = {
- threadInfos: {
- ...state.threadInfos,
- [threadID]: updatedThread,
- },
- };
const threadStoreOperations = [
{
type: 'replace',
@@ -488,13 +482,12 @@
},
},
];
- const processedStore = processThreadStoreOperations(
+ 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
Fri, Nov 8, 10:01 PM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2445313
Default Alt Text
D4193.id13415.diff (929 B)
Attached To
Mode
D4193: [lib] Update `threadStore` with `threadStoreOps` for `setThreadUnreadStatus.success` action
Attached
Detach File
Event Timeline
Log In to Comment