only show reply button on REAL (not pending) m.room.message events

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2018-01-11 19:21:02 +00:00
parent 56300f9578
commit 17c4839029
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E

View File

@ -232,6 +232,14 @@ module.exports = React.createClass({
</div>
);
if (SettingsStore.isFeatureEnabled("feature_rich_quoting")) {
replyButton = (
<div className="mx_MessageContextMenu_field" onClick={this.onReplyClick}>
{ _t('Reply') }
</div>
);
}
if (this.state.canPin) {
pinButton = (
<div className="mx_MessageContextMenu_field" onClick={this.onPinClick}>
@ -280,14 +288,6 @@ module.exports = React.createClass({
{ _t('Quote') }
</div>
);
if (SettingsStore.isFeatureEnabled("feature_rich_quoting")) {
replyButton = (
<div className="mx_MessageContextMenu_field" onClick={this.onReplyClick}>
{ _t('Reply') }
</div>
);
}
}
// Bridges can provide a 'external_url' to link back to the source.