Merge pull request #7500 from capilkey/fix-html5-logout
Fix HTML5 logout
This commit is contained in:
commit
b8e4445eb8
@ -182,7 +182,10 @@ class Base extends Component {
|
||||
}
|
||||
|
||||
if (codeError && !meetingHasEnded) {
|
||||
// 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();
|
||||
|
@ -127,8 +127,10 @@ class App extends Component {
|
||||
|
||||
componentWillUnmount() {
|
||||
window.removeEventListener('resize', this.handleWindowResize, false);
|
||||
if (navigator.connection) {
|
||||
navigator.connection.addEventListener('change', this.handleNetworkConnection, false);
|
||||
}
|
||||
}
|
||||
|
||||
handleWindowResize() {
|
||||
const { enableResize } = this.state;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user