reply and reply_preview only differ in whether they contain <Reply />
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8062494692
commit
cb293a852d
1 changed files with 7 additions and 22 deletions
|
@ -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}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue