Merge pull request #4383 from KDSBrowne/x2.0.8-fix-undefined-chat-prop

[HTML5] - Fix Chat bug
This commit is contained in:
Anton Georgiev 2017-09-18 11:57:40 -04:00 committed by GitHub
commit 4a148ebfce

View File

@ -107,7 +107,7 @@ const isChatLocked = (receiverID) => {
const meeting = Meetings.findOne({});
const user = Users.findOne({});
if (meeting.lockSettingsProp !== 'undefined') {
if (meeting.lockSettingsProp !== undefined) {
const isPubChatLocked = meeting.lockSettingsProp.disablePubChat;
const isPrivChatLocked = meeting.lockSettingsProp.disablePrivChat;
const isViewer = user.role === "VIEWER";