Skip to content
Snippets Groups Projects
Commit 81c8f222 authored by KDSBrowne's avatar KDSBrowne
Browse files

replace string literal with value from settings.yml

parent dc1dd17d
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
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