From 7c0bef6256e355c0b797b1cca6bc75fb77380c0c Mon Sep 17 00:00:00 2001 From: KDSBrowne <kert.browne85@gmail.com> Date: Fri, 21 Dec 2018 20:16:36 +0000 Subject: [PATCH] add config param to show userlist on join --- .../ui/components/join-handler/component.jsx | 15 ++++++++++++--- bigbluebutton-html5/private/config/settings.yml | 1 + 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/join-handler/component.jsx b/bigbluebutton-html5/imports/ui/components/join-handler/component.jsx index b62f599fd4..0a7ecf0d06 100644 --- a/bigbluebutton-html5/imports/ui/components/join-handler/component.jsx +++ b/bigbluebutton-html5/imports/ui/components/join-handler/component.jsx @@ -12,6 +12,8 @@ const propTypes = { children: PropTypes.element.isRequired, }; +const APP_CONFIG = Meteor.settings.public.app; + class JoinHandler extends Component { static setError(codeError) { Session.set('hasError', true); @@ -113,9 +115,16 @@ class JoinHandler extends Component { setLogoURL(response); logUserInfo(); - Session.set('openPanel', 'chat'); - Session.set('idChatOpen', ''); - if (deviceInfo.type().isPhone) Session.set('openPanel', ''); + const { showParticipantsOnLogin } = APP_CONFIG; + + if (showParticipantsOnLogin) { + Session.set('openPanel', 'chat'); + Session.set('idChatOpen', ''); + if (deviceInfo.type().isPhone) Session.set('openPanel', ''); + } else { + Session.set('openPanel', ''); + } + logger.info(`User successfully went through main.joinRouteHandler with [${JSON.stringify(response)}].`); } else { diff --git a/bigbluebutton-html5/private/config/settings.yml b/bigbluebutton-html5/private/config/settings.yml index 057222f99f..71ecbbfd63 100755 --- a/bigbluebutton-html5/private/config/settings.yml +++ b/bigbluebutton-html5/private/config/settings.yml @@ -4,6 +4,7 @@ public: desktopFont: 14 audioChatNotification: false autoJoin: true + showParticipantsOnLogin: false listenOnlyMode: true forceListenOnly: false skipCheck: false -- GitLab