Fix client reconnection after meeting end

This commit is contained in:
Tainan Felipe 2022-11-17 15:59:13 -03:00
parent 5bbcec3271
commit b06da1017a
2 changed files with 4 additions and 2 deletions

View File

@ -304,6 +304,7 @@ class Base extends Component {
render() {
const {
meetingExist,
codeError,
} = this.props;
const { meetingExisted } = this.state;
@ -311,7 +312,7 @@ class Base extends Component {
<>
{meetingExist && Auth.loggedIn && <DebugWindow />}
{
(!meetingExisted && !meetingExist && Auth.loggedIn)
(!meetingExisted && !meetingExist && Auth.loggedIn && !codeError)
? <LoadingScreen />
: this.renderByState()
}

View File

@ -211,7 +211,8 @@ class JoinHandler extends Component {
}, 'User successfully went through main.joinRouteHandler');
} else {
const e = new Error(response.message);
if (!Session.get('codeError')) Session.set('errorMessageDescription', response.message);
JoinHandler.setError('401');
Session.set('errorMessageDescription', response.message);
logger.error({
logCode: 'joinhandler_component_joinroutehandler_error',
extraInfo: {