hide rich quoting behind flags, retaining original quoting for now

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-12-12 23:29:43 +00:00
parent 38e8488c2a
commit 4666ac7c83
No known key found for this signature in database
GPG key ID: 3F879DA5AD802A5E
3 changed files with 40 additions and 2 deletions

View file

@ -202,7 +202,9 @@ module.exports = React.createClass({
// update the current node with one that's now taken its place
node = pillContainer;
} else if (this.props.tileShape !== 'quote' && Quote.isMessageUrl(href)) {
} else if (SettingsStore.isFeatureEnabled("feature_rich_quoting") && this.props.tileShape !== 'quote' &&
Quote.isMessageUrl(href)
) {
// only allow this branch if we're not already in a quote, as fun as infinite nesting is.
const quoteContainer = document.createElement('span');