replace string literal with value from settings.yml

This commit is contained in:
KDSBrowne 2019-09-27 13:45:01 +00:00
parent dc1dd17d8a
commit 81c8f2221f

View File

@ -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();