mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-09 16:23:14 +00:00
show replies in ReplyPreview
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@@ -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>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user