Skip to content
Snippets Groups Projects
Commit 7c0bef62 authored by KDSBrowne's avatar KDSBrowne
Browse files

add config param to show userlist on join

parent ab9cf564
No related branches found
No related tags found
No related merge requests found
......@@ -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 {
......
......@@ -4,6 +4,7 @@ public:
desktopFont: 14
audioChatNotification: false
autoJoin: true
showParticipantsOnLogin: false
listenOnlyMode: true
forceListenOnly: false
skipCheck: false
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment