change logout error code to unused value

This commit is contained in:
Chad Pilkey 2019-05-24 15:56:17 -07:00
parent 4ee3872c2e
commit 9e6e15b8b0
2 changed files with 6 additions and 2 deletions

View File

@ -182,7 +182,10 @@ class Base extends Component {
}
if (codeError && !meetingHasEnded) {
logger.error({ logCode: 'startup_client_usercouldnotlogin_error' }, `User could not log in HTML5, hit ${codeError}`);
// 680 is set for the codeError when the user requests a logout
if (codeError !== '680') {
logger.error({ logCode: 'startup_client_usercouldnotlogin_error' }, `User could not log in HTML5, hit ${codeError}`);
}
return (<ErrorScreen code={codeError} />);
}
// this.props.annotationsHandler.stop();

View File

@ -166,7 +166,8 @@ class SettingsDropdown extends PureComponent {
leaveSession() {
document.dispatchEvent(new Event('exitVideo'));
const LOGOUT_CODE = '403';
// Set the logout code to 680 because it's not a real code and can be matched on the other side
const LOGOUT_CODE = '680';
makeCall('userLeftMeeting');
// we don't check askForFeedbackOnLogout here,
// it is checked in meeting-ended component