From 42993a78ed6a640b4d5477c1bde5965c993cbb6f Mon Sep 17 00:00:00 2001 From: Aviral Dasgupta Date: Tue, 11 Oct 2016 19:07:15 +0530 Subject: [PATCH] Only show quote option if RTE is enabled --- src/components/views/context_menus/MessageContextMenu.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/views/context_menus/MessageContextMenu.js b/src/components/views/context_menus/MessageContextMenu.js index ff6ace61..ad7b340c 100644 --- a/src/components/views/context_menus/MessageContextMenu.js +++ b/src/components/views/context_menus/MessageContextMenu.js @@ -20,9 +20,10 @@ var React = require('react'); var MatrixClientPeg = require('matrix-react-sdk/lib/MatrixClientPeg'); var dis = require('matrix-react-sdk/lib/dispatcher'); -var sdk = require('matrix-react-sdk') +var sdk = require('matrix-react-sdk'); var Modal = require('matrix-react-sdk/lib/Modal'); var Resend = require("matrix-react-sdk/lib/Resend"); +import * as UserSettingsStore from 'matrix-react-sdk/lib/UserSettingsStore'; module.exports = React.createClass({ displayName: 'MessageContextMenu', @@ -163,7 +164,7 @@ module.exports = React.createClass({ {viewSourceButton} {unhidePreviewButton} {permalinkButton} - {quoteButton} + {UserSettingsStore.isFeatureEnabled('rich_text_editor') ? quoteButton : null} ); }