Fixed private chat doesn't working
This commit is contained in:
parent
f2bc6553c8
commit
39cf9b7279
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user