diff --git a/lib/reducers/keyserver-reducer.js b/lib/reducers/keyserver-reducer.js --- a/lib/reducers/keyserver-reducer.js +++ b/lib/reducers/keyserver-reducer.js @@ -272,16 +272,20 @@ keyserverInfos: processStoreOps(state.keyserverInfos, [operation]), }; } else if (action.type === keyserverRegisterActionTypes.success) { - state = { - ...state, - keyserverInfos: { - ...state.keyserverInfos, - [ashoatKeyserverID]: { + const operation: ReplaceKeyserverOperation = { + type: 'replace_keyserver', + payload: { + id: ashoatKeyserverID, + keyserverInfo: { ...state.keyserverInfos[ashoatKeyserverID], lastCommunicatedPlatformDetails: getConfig().platformDetails, }, }, }; + return { + ...state, + keyserverInfos: processStoreOps(state.keyserverInfos, [operation]), + }; } else if (action.type === updateConnectionStatusActionType) { const { keyserverID, status } = action.payload; return {