Fixed private chat doesn't working

This commit is contained in:
Tainan Felipe 2019-07-30 16:27:57 -03:00
parent f2bc6553c8
commit 39cf9b7279

View File

@ -237,11 +237,11 @@ class UserDropdown extends PureComponent {
const { disablePrivateChat } = lockSettingsProps; const { disablePrivateChat } = lockSettingsProps;
const enablePrivateChat = currentUser.isModerator const enablePrivateChat = currentUser.role === ROLE_MODERATOR
? allowedToChatPrivately ? allowedToChatPrivately
: allowedToChatPrivately : allowedToChatPrivately
&& (!(currentUser.isLocked && disablePrivateChat) && (!(currentUser.locked && disablePrivateChat)
|| hasPrivateChatBetweenUsers(currentUser, user) || hasPrivateChatBetweenUsers(currentUser.userId, user.id)
|| user.isModerator) && isMeteorConnected; || user.isModerator) && isMeteorConnected;
const { allowUserLookup } = Meteor.settings.public.app; const { allowUserLookup } = Meteor.settings.public.app;