reply and reply_preview only differ in whether they contain <Reply />

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2018-02-16 21:07:25 +00:00
parent 8062494692
commit cb293a852d
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with 7 additions and 22 deletions

View File

@ -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}