throw new quoting behind flags

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-12-12 23:36:10 +00:00
parent 10c6f24a83
commit 54a9ccdee7
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

View File

@ -170,10 +170,17 @@ module.exports = React.createClass({
}, },
onQuoteClick: function() { onQuoteClick: function() {
dis.dispatch({ if (SettingsStore.isFeatureEnabled("feature_rich_quoting")) {
action: 'quote_event', dis.dispatch({
event: this.props.mxEvent, action: 'quote_event',
}); event: this.props.mxEvent,
});
} else {
dis.dispatch({
action: 'quote',
text: this.props.eventTileOps.getInnerText(),
});
}
this.closeMenu(); this.closeMenu();
}, },