You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-10 09:22:25 +03:00
reply and reply_preview only differ in whether they contain <Reply />
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -589,37 +589,22 @@ module.exports = withMatrixClient(React.createClass({
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
case 'reply': {
|
|
||||||
return (
|
case 'reply':
|
||||||
<div className={classes}>
|
|
||||||
{ avatar }
|
|
||||||
{ sender }
|
|
||||||
<div className="mx_EventTile_line mx_EventTile_reply">
|
|
||||||
<a href={permalink} onClick={this.onPermalinkClicked}>
|
|
||||||
{ timestamp }
|
|
||||||
</a>
|
|
||||||
{ this._renderE2EPadlock() }
|
|
||||||
<EventTileType ref="tile"
|
|
||||||
mxEvent={this.props.mxEvent}
|
|
||||||
highlights={this.props.highlights}
|
|
||||||
highlightLink={this.props.highlightLink}
|
|
||||||
onWidgetLoad={this.props.onWidgetLoad}
|
|
||||||
showUrlPreview={false} />
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
case 'reply_preview': {
|
case 'reply_preview': {
|
||||||
return (
|
return (
|
||||||
<div className={classes}>
|
<div className={classes}>
|
||||||
{ avatar }
|
{ avatar }
|
||||||
{ sender }
|
{ sender }
|
||||||
<div className="mx_EventTile_line mx_EventTile_reply">
|
<div className="mx_EventTile_reply">
|
||||||
<a href={permalink} onClick={this.onPermalinkClicked}>
|
<a href={permalink} onClick={this.onPermalinkClicked}>
|
||||||
{ timestamp }
|
{ timestamp }
|
||||||
</a>
|
</a>
|
||||||
{ this._renderE2EPadlock() }
|
{ this._renderE2EPadlock() }
|
||||||
{ Reply.getQuote(this.props.mxEvent, this.props.onWidgetLoad) }
|
{
|
||||||
|
this.props.tileShape === 'reply_preview'
|
||||||
|
&& Reply.getQuote(this.props.mxEvent, this.props.onWidgetLoad)
|
||||||
|
}
|
||||||
<EventTileType ref="tile"
|
<EventTileType ref="tile"
|
||||||
mxEvent={this.props.mxEvent}
|
mxEvent={this.props.mxEvent}
|
||||||
highlights={this.props.highlights}
|
highlights={this.props.highlights}
|
||||||
|
|||||||
Reference in New Issue
Block a user