Skip to content
Permalink
Browse files Browse the repository at this point in the history
fix private chat lock not applying to already opened chats
  • Loading branch information
KDSBrowne committed Apr 28, 2020
1 parent a0e0293 commit 7dcdfb1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bigbluebutton-html5/imports/ui/components/chat/service.js
Expand Up @@ -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 },
Expand Down

0 comments on commit 7dcdfb1

Please sign in to comment.