forked from matrix/element-web
throw new quoting behind flags
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
10c6f24a83
commit
54a9ccdee7
|
@ -170,10 +170,17 @@ module.exports = React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onQuoteClick: function() {
|
onQuoteClick: function() {
|
||||||
|
if (SettingsStore.isFeatureEnabled("feature_rich_quoting")) {
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'quote_event',
|
action: 'quote_event',
|
||||||
event: this.props.mxEvent,
|
event: this.props.mxEvent,
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
dis.dispatch({
|
||||||
|
action: 'quote',
|
||||||
|
text: this.props.eventTileOps.getInnerText(),
|
||||||
|
});
|
||||||
|
}
|
||||||
this.closeMenu();
|
this.closeMenu();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue