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 @@ -38,9 +38,16 @@ !!action.payload.threadStore && state.threadHashingStatus !== 'completed') ) { - return { threadHashes: {}, threadHashingStatus: 'starting' }; + const removeAllOperation = { type: 'remove_all_integrity_thread_hashes' }; + return { + threadHashes: processStoreOps(state, [removeAllOperation]).threadHashes, + threadHashingStatus: 'starting', + }; } else if (action.type === keyserverAuthActionTypes.success) { - return { ...state, threadHashingStatus: 'starting' }; + return { + threadHashes: processStoreOps(state, []).threadHashes, + threadHashingStatus: 'starting', + }; } let newState = state; if (action.type === updateIntegrityStoreActionType) {