Refactors the integrity reducer to use sqlite ops for adding new thread hashes
Depends on D11249
Differential D11287
[lib] refactor integrity reducer add new thread hashes to use sqlite ops will on Mar 11 2024, 12:40 AM. Authored by Tags None Referenced Files
Subscribers
Details Refactors the integrity reducer to use sqlite ops for adding new thread hashes Depends on D11249 flow check
Diff Detail
Event TimelineComment Actions The reduceIntegrityStore function starts with: if ( action.type === logInActionTypes.success || action.type === siweAuthActionTypes.success || action.type === keyserverRegisterActionTypes.success || action.type === fullStateSyncActionType || (action.type === setClientDBStoreActionType && !!action.payload.threadStore && state.threadHashingStatus !== 'completed') ) { return { threadHashes: {}, threadHashingStatus: 'starting' }; } else if (action.type === keyserverAuthActionTypes.success) { return { ...state, threadHashingStatus: 'starting' }; } These currently just return either the current state or an empty threadHashes object. Do we have to refactor this in anyway with sqlite ops or is it fine as is? Comment Actions If it returns empty object we should generate remove_all_integrity_thread_hashes operation - you could do it in a separate diff Comment Actions
Agree. |