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 @@ -76,12 +76,16 @@ keyserverInfos, }; } else if (action.type === setNewSessionActionType) { - const { keyserverID, urlPrefix } = action.payload; + const { keyserverID, urlPrefix, temporary } = action.payload; let previousEntry = state.keyserverInfos[keyserverID]; if (!previousEntry) { previousEntry = { ...defaultKeyserverInfo, urlPrefix, + connection: { + ...defaultKeyserverInfo.connection, + connectionIssue: temporary ? 'temporarily_connected' : undefined, + }, }; } diff --git a/lib/types/session-types.js b/lib/types/session-types.js --- a/lib/types/session-types.js +++ b/lib/types/session-types.js @@ -84,6 +84,7 @@ +logInActionSource: ?LogInActionSource, +keyserverID: string, +urlPrefix: string, + +temporary?: boolean, }; export type SessionState = { diff --git a/lib/types/socket-types.js b/lib/types/socket-types.js --- a/lib/types/socket-types.js +++ b/lib/types/socket-types.js @@ -489,7 +489,8 @@ export type ConnectionIssue = | 'policy_acknowledgement_socket_crash_loop' - | 'not_logged_in_error'; + | 'not_logged_in_error' + | 'temporarily_connected'; export type ConnectionInfo = { +status: ConnectionStatus,