{
{messageBodyFooter}
)}
- {(!isSharedChannel || this.props.sharedChannelsPluginsEnabled) && (
-
- )}
+
>
);
diff --git a/webapp/channels/src/components/profile_popover/profile_popover.tsx b/webapp/channels/src/components/profile_popover/profile_popover.tsx
index 5ae06fc2f593..9220cecaa6f2 100644
--- a/webapp/channels/src/components/profile_popover/profile_popover.tsx
+++ b/webapp/channels/src/components/profile_popover/profile_popover.tsx
@@ -17,8 +17,6 @@ import {getMembershipForEntities} from 'actions/views/profile_popover';
import {getSelectedPost} from 'selectors/rhs';
import {getIsMobileView} from 'selectors/views/browser';
-import {usePluginVisibilityInSharedChannel} from 'components/common/hooks/usePluginVisibilityInSharedChannel';
-
import Pluggable from 'plugins/pluggable';
import {getHistory} from 'utils/browser_history';
import {A11yCustomEventTypes, UserStatuses} from 'utils/constants';
@@ -76,7 +74,6 @@ const ProfilePopover = ({
const user = useSelector((state: GlobalState) => getUser(state, userId));
const currentTeamId = useSelector((state: GlobalState) => getCurrentTeamId(state));
const channelId = useSelector((state: GlobalState) => (channelIdProp || getDefaultChannelId(state)));
- const pluginItemsVisible = usePluginVisibilityInSharedChannel(channelId);
const isMobileView = useSelector(getIsMobileView);
const teamUrl = useSelector(getCurrentRelativeTeamUrl);
const modals = useSelector((state: GlobalState) => state.views.modals);
@@ -188,17 +185,15 @@ const ProfilePopover = ({
haveOverrideProp={haveOverrideProp}
isBot={user.is_bot}
/>
- {pluginItemsVisible && (
-
- )}
+
{enableCustomProfileAttributes && !user.is_bot && (
- {pluginItemsVisible && (
-
- )}
+