Merge pull request #9298 from KDSBrowne/2.2-fix-chat-lock
Improving on chat lock settings
This commit is contained in:
commit
be1a7ad2be
@ -133,9 +133,8 @@ const getPrivateGroupMessages = () => {
|
||||
|
||||
const isChatLocked = (receiverID) => {
|
||||
const isPublic = receiverID === PUBLIC_CHAT_ID;
|
||||
|
||||
const meeting = Meetings.findOne({ meetingId: Auth.meetingID },
|
||||
{ fields: { 'lockSettingsProps.disablePublicChat': 1 } });
|
||||
{ fields: { 'lockSettingsProps.disablePublicChat': 1, 'lockSettingsProps.disablePrivateChat': 1 } });
|
||||
const user = Users.findOne({ meetingId: Auth.meetingID, userId: Auth.userID },
|
||||
{ fields: { locked: 1, role: 1 } });
|
||||
const receiver = Users.findOne({ meetingId: Auth.meetingID, userId: receiverID },
|
||||
|
Loading…
Reference in New Issue
Block a user