mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-18 14:44:58 +08:00
show replies in ReplyPreview
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
2e3cbb309e
commit
8062494692
@ -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}>
|
||||||
|
@ -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>;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user