show replies in ReplyPreview

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

View File

@ -609,6 +609,27 @@ module.exports = withMatrixClient(React.createClass({
</div> </div>
); );
} }
case 'reply_preview': {
return (
<div className={classes}>
{ avatar }
{ sender }
<div className="mx_EventTile_line mx_EventTile_reply">
<a href={permalink} onClick={this.onPermalinkClicked}>
{ timestamp }
</a>
{ this._renderE2EPadlock() }
{ Reply.getQuote(this.props.mxEvent, this.props.onWidgetLoad) }
<EventTileType ref="tile"
mxEvent={this.props.mxEvent}
highlights={this.props.highlights}
highlightLink={this.props.highlightLink}
onWidgetLoad={this.props.onWidgetLoad}
showUrlPreview={false} />
</div>
</div>
);
}
default: { default: {
return ( return (
<div className={classes}> <div className={classes}>

View File

@ -71,7 +71,7 @@ export default class ReplyPreview extends React.Component {
onClick={cancelQuoting} /> onClick={cancelQuoting} />
</div> </div>
<div className="mx_ReplyPreview_clear" /> <div className="mx_ReplyPreview_clear" />
<EventTile mxEvent={this.state.event} last={true} tileShape="reply" onWidgetLoad={dummyOnWidgetLoad} /> <EventTile mxEvent={this.state.event} last={true} tileShape="reply_preview" onWidgetLoad={dummyOnWidgetLoad} />
</div> </div>
</div>; </div>;
} }