From d7a43df793211a16377ddc78183179b5114b393e Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 20 Aug 2020 19:54:09 -0600 Subject: [PATCH] Disable context menu for v2 communities --- src/components/views/elements/TagTile.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/views/elements/TagTile.js b/src/components/views/elements/TagTile.js index c59aaeefa4..6a12c87024 100644 --- a/src/components/views/elements/TagTile.js +++ b/src/components/views/elements/TagTile.js @@ -30,6 +30,7 @@ import GroupStore from '../../../stores/GroupStore'; import TagOrderStore from '../../../stores/TagOrderStore'; import MatrixClientContext from "../../../contexts/MatrixClientContext"; import AccessibleButton from "./AccessibleButton"; +import SettingsStore from "../../../settings/SettingsStore"; // A class for a child of TagPanel (possibly wrapped in a DNDTagTile) that represents // a thing to click on for the user to filter the visible rooms in the RoomList to: @@ -112,6 +113,7 @@ export default createReactClass({ }, onMouseOver: function() { + if (SettingsStore.getValue("feature_communities_v2_prototypes")) return; this.setState({ hover: true }); }, @@ -123,6 +125,7 @@ export default createReactClass({ // Prevent the TagTile onClick event firing as well e.stopPropagation(); e.preventDefault(); + if (SettingsStore.getValue("feature_communities_v2_prototypes")) return; this.setState({ hover: false }); this.props.openMenu(); },