Merge pull request #5978 from vector-im/t3chguy/nvl/rich_quoting

Iterative fixes on Rich Quoting
This commit is contained in:
David Baker 2018-01-15 10:06:05 +00:00 committed by GitHub
commit fc844567a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 8 deletions

View File

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

View File

@ -28,6 +28,7 @@
.mx_QuotePreview_cancel { .mx_QuotePreview_cancel {
float: right; float: right;
cursor: pointer;
} }
.mx_QuotePreview_clear { .mx_QuotePreview_clear {