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 @@ -498,6 +498,9 @@ +lateResponses: $ReadOnlyArray, +unreachable: boolean, +connectionIssue: ?ConnectionIssue, + // When this is flipped to true, a session recovery is attempted + // This can happen when the keyserver invalidates the session + +sessionRecoveryInProgress: boolean, }; export const connectionInfoValidator: TInterface = tShape({ @@ -518,6 +521,7 @@ 'not_logged_in_error', ]), ), + sessionRecoveryInProgress: t.Boolean, }); export const defaultConnectionInfo: ConnectionInfo = { status: 'connecting', @@ -525,6 +529,7 @@ lateResponses: [], unreachable: false, connectionIssue: null, + sessionRecoveryInProgress: false, }; export const setConnectionIssueActionType = 'SET_CONNECTION_ISSUE';