mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
81d123f652
@ -134,10 +134,9 @@ module.exports = React.createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onQuoteClick: function() {
|
onQuoteClick: function() {
|
||||||
console.log(this.props.mxEvent);
|
|
||||||
dis.dispatch({
|
dis.dispatch({
|
||||||
action: 'quote',
|
action: 'quote',
|
||||||
event: this.props.mxEvent,
|
text: this.props.eventTileOps.getInnerText(),
|
||||||
});
|
});
|
||||||
this.closeMenu();
|
this.closeMenu();
|
||||||
},
|
},
|
||||||
@ -153,6 +152,7 @@ module.exports = React.createClass({
|
|||||||
let unhidePreviewButton;
|
let unhidePreviewButton;
|
||||||
let permalinkButton;
|
let permalinkButton;
|
||||||
let externalURLButton;
|
let externalURLButton;
|
||||||
|
let quoteButton;
|
||||||
|
|
||||||
if (eventStatus === 'not_sent') {
|
if (eventStatus === 'not_sent') {
|
||||||
resendButton = (
|
resendButton = (
|
||||||
@ -221,11 +221,13 @@ module.exports = React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
||||||
const quoteButton = (
|
if (this.props.eventTileOps && this.props.eventTileOps.getInnerText) {
|
||||||
|
quoteButton = (
|
||||||
<div className="mx_MessageContextMenu_field" onClick={this.onQuoteClick}>
|
<div className="mx_MessageContextMenu_field" onClick={this.onQuoteClick}>
|
||||||
{ _t('Quote') }
|
{ _t('Quote') }
|
||||||
</div>
|
</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.
|
||||||
if( typeof(this.props.mxEvent.event.content.external_url) === "string") {
|
if( typeof(this.props.mxEvent.event.content.external_url) === "string") {
|
||||||
|
Loading…
Reference in New Issue
Block a user