Merge pull request #12215 from vitormateusalmeida/issue-12143

Fix layout broken when close waiting room panel
This commit is contained in:
Anton Georgiev 2021-04-29 16:37:48 -04:00 committed by GitHub
commit 9dba4f6dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -30,6 +30,8 @@ class WaitingUsers extends PureComponent {
? 'userlist'
: 'waitingUsersPanel',
);
window.dispatchEvent(new Event('panelChanged'));
}
render() {

View File

@ -153,7 +153,10 @@ const WaitingUsers = (props) => {
authenticatedUsers,
guestUsers,
} = props;
if (!authenticatedUsers.length && !guestUsers.length) Session.set('openPanel', 'userlist');
if (!authenticatedUsers.length && !guestUsers.length) {
Session.set('openPanel', 'userlist');
window.dispatchEvent(new Event('panelChanged'));
}
});
const {
@ -239,6 +242,7 @@ const WaitingUsers = (props) => {
<Button
onClick={() => {
Session.set('openPanel', 'userlist');
window.dispatchEvent(new Event('panelChanged'));
}}
label={intl.formatMessage(intlMessages.title)}
icon="left_arrow"