fix unlock label and dropdown option in userlist

This commit is contained in:
Ramon Souza 2021-07-07 15:30:41 -03:00
parent a281aeb11d
commit 2ede8b898f

View File

@ -284,16 +284,19 @@ const getActiveChats = ({ groupChatsMessages, groupChats, users }) => {
const isVoiceOnlyUser = userId => userId.toString().startsWith('v_');
const isMeetingLocked = (id) => {
const meeting = Meetings.findOne({ meetingId: id }, { fields: { lockSettingsProps: 1 } });
const meeting = Meetings.findOne({ meetingId: id },
{ fields: { lockSettingsProps: 1, usersProp: 1 } });
let isLocked = false;
if (meeting.lockSettingsProps !== undefined) {
const lockSettings = meeting.lockSettingsProps;
const {lockSettingsProps:lockSettings, usersProp} = meeting;
if (lockSettings.disableCam
|| lockSettings.disableMic
|| lockSettings.disablePrivateChat
|| lockSettings.disablePublicChat) {
|| lockSettings.disablePublicChat
|| lockSettings.disableNote
|| usersProp.webcamsOnlyForModerator) {
isLocked = true;
}
}