Merge pull request #12215 from vitormateusalmeida/issue-12143
Fix layout broken when close waiting room panel
This commit is contained in:
commit
9dba4f6dab
@ -30,6 +30,8 @@ class WaitingUsers extends PureComponent {
|
||||
? 'userlist'
|
||||
: 'waitingUsersPanel',
|
||||
);
|
||||
|
||||
window.dispatchEvent(new Event('panelChanged'));
|
||||
}
|
||||
|
||||
render() {
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user