Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3401489
D11343.id38111.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11343.id38111.diff
View Options
diff --git a/lib/reducers/integrity-reducer.js b/lib/reducers/integrity-reducer.js
--- a/lib/reducers/integrity-reducer.js
+++ b/lib/reducers/integrity-reducer.js
@@ -31,11 +31,22 @@
threadStoreOperations: $ReadOnlyArray<ThreadStoreOperation>,
): IntegrityStore {
if (action.type === fullStateSyncActionType) {
+ const removeAllOperation = { type: 'remove_all_integrity_thread_hashes' };
const threadHashesArray = Object.entries(state.threadHashes).filter(
([key]) => extractKeyserverIDFromID(key) !== action.payload.keyserverID,
);
const threadHashes = Object.fromEntries(threadHashesArray);
- return { threadHashes, threadHashingStatus: 'starting' };
+ const replaceOperation = {
+ type: 'replace_integrity_thread_hashes',
+ payload: { threadHashes },
+ };
+ return {
+ threadHashes: processStoreOps(state, [
+ removeAllOperation,
+ replaceOperation,
+ ]).threadHashes,
+ threadHashingStatus: 'starting',
+ };
} else if (
action.type === logInActionTypes.success ||
action.type === siweAuthActionTypes.success ||
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 12:28 PM (21 h, 41 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611663
Default Alt Text
D11343.id38111.diff (1 KB)
Attached To
Mode
D11343: [sqlite] [lib] refactor integrity reducer full state sync action type to use sqlite ops
Attached
Detach File
Event Timeline
Log In to Comment