StatusActionBar: hide DM menu item unless privacyScopes are enabled

This commit is contained in:
Alex Gleason 2022-08-13 10:16:13 -05:00
parent 32b6c646cf
commit f751104c0f
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -444,7 +444,7 @@ const StatusActionBar: React.FC<IStatusActionBar> = ({
action: handleChatClick,
icon: require('@tabler/icons/messages.svg'),
});
} else {
} else if (features.privacyScopes) {
menu.push({
text: intl.formatMessage(messages.direct, { name: username }),
action: handleDirectClick,