1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

Merge pull request #73 from matrix-org/rav/on_highlight_click

Expose onHighlightClick on the event tiles
This commit is contained in:
Richard van der Hoff
2016-01-04 15:23:45 +00:00
3 changed files with 32 additions and 3 deletions

View File

@ -49,7 +49,8 @@ module.exports = React.createClass({
render: function() {
var mxEvent = this.props.mxEvent;
var content = mxEvent.getContent();
var body = HtmlUtils.bodyToHtml(content, this.props.highlights);
var body = HtmlUtils.bodyToHtml(content, this.props.highlights,
{onHighlightClick: this.props.onHighlightClick});
switch (content.msgtype) {
case "m.emote":