Page MenuHomePhabricator

D4194.id13416.diff
No OneTemporary

D4194.id13416.diff

diff --git a/native/redux/redux-setup.js b/native/redux/redux-setup.js
--- a/native/redux/redux-setup.js
+++ b/native/redux/redux-setup.js
@@ -15,10 +15,7 @@
sqliteOpFailure,
} from 'lib/actions/user-actions';
import baseReducer from 'lib/reducers/master-reducer';
-import {
- processThreadStoreOperations,
- assertThreadStoreThreadsAreEqual,
-} from 'lib/reducers/thread-reducer';
+import { processThreadStoreOperations } from 'lib/reducers/thread-reducer';
import {
invalidSessionDowngrade,
invalidSessionRecovery,
@@ -427,17 +424,6 @@
},
};
- const updatedState = {
- ...state,
- threadStore: {
- ...state.threadStore,
- threadInfos: {
- ...state.threadStore.threadInfos,
- [activeThread]: updatedActiveThreadInfo,
- },
- },
- };
-
const threadStoreOperations = [
{
type: 'replace',
@@ -448,17 +434,15 @@
},
];
- const processedStore = processThreadStoreOperations(
+ const updatedThreadStore = processThreadStoreOperations(
state.threadStore,
threadStoreOperations,
);
- assertThreadStoreThreadsAreEqual(
- processedStore,
- updatedState.threadStore,
- action.type,
- );
- return { state: updatedState, threadStoreOperations };
+ return {
+ state: { ...state, threadStore: updatedThreadStore },
+ threadStoreOperations,
+ };
}
let appLastBecameInactive = 0;

File Metadata

Mime Type
text/plain
Expires
Sun, Nov 24, 8:02 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576930
Default Alt Text
D4194.id13416.diff (1 KB)

Event Timeline