From 81c8f2221fff413f5db01b2fd4d96bb21e8b86ea Mon Sep 17 00:00:00 2001 From: KDSBrowne <kert.browne85@gmail.com> Date: Fri, 27 Sep 2019 13:45:01 +0000 Subject: [PATCH] replace string literal with value from settings.yml --- .../chat/message-form/typing-indicator/container.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx b/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx index ee192dffb1..66f1f3ee8a 100644 --- a/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx +++ b/bigbluebutton-html5/imports/ui/components/chat/message-form/typing-indicator/container.jsx @@ -7,6 +7,7 @@ import Meetings from '/imports/api/meetings'; import TypingIndicator from './component'; const CHAT_CONFIG = Meteor.settings.public.chat; +const USER_CONFIG = Meteor.settings.public.user; const PUBLIC_CHAT_KEY = CHAT_CONFIG.public_id; const TYPING_INDICATOR_ENABLED = CHAT_CONFIG.typingIndicator.enabled; @@ -46,8 +47,8 @@ export default withTracker(() => { }, }); - if (meeting.lockSettingsProps.hideUserList && currentUser.role === 'VIEWER') { - selector.role = { $ne: 'VIEWER' }; + if (meeting.lockSettingsProps.hideUserList && currentUser.role === USER_CONFIG.role_viewer) { + selector.role = { $ne: USER_CONFIG.role_viewer }; } const typingUsers = UsersTyping.find(selector).fetch(); -- GitLab