Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33316012
D4189.1768827412.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4189.1768827412.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
@@ -315,12 +315,6 @@
};
}
if (Object.keys(changedThreadInfos).length !== 0) {
- const updatedStore = {
- threadInfos: {
- ...state.threadInfos,
- ...changedThreadInfos,
- },
- };
const threadStoreOperations = Object.keys(changedThreadInfos).map(id => ({
type: 'replace',
payload: {
@@ -328,17 +322,12 @@
threadInfo: changedThreadInfos[id],
},
}));
- 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
Mon, Jan 19, 12:56 PM (9 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5956451
Default Alt Text
D4189.1768827412.diff (1 KB)
Attached To
Mode
D4189: [lib] Update `threadStore` with `threadStoreOps` for `saveMessages` action
Attached
Detach File
Event Timeline
Log In to Comment