From 85748c09cfc604b43fbd797b2dfba5a21ea39103 Mon Sep 17 00:00:00 2001 From: David Baker Date: Sun, 19 Jul 2015 10:43:16 +0100 Subject: [PATCH] Linkify emote tiles --- skins/base/views/molecules/MEmoteTile.js | 2 +- src/controllers/molecules/MEmoteTile.js | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/skins/base/views/molecules/MEmoteTile.js b/skins/base/views/molecules/MEmoteTile.js index e7720e160b..1125a307f5 100644 --- a/skins/base/views/molecules/MEmoteTile.js +++ b/skins/base/views/molecules/MEmoteTile.js @@ -29,7 +29,7 @@ module.exports = React.createClass({ var content = mxEvent.getContent(); var name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender(); return ( - + * {name} {content.body} ); diff --git a/src/controllers/molecules/MEmoteTile.js b/src/controllers/molecules/MEmoteTile.js index 8aa688b21e..1fb117ceef 100644 --- a/src/controllers/molecules/MEmoteTile.js +++ b/src/controllers/molecules/MEmoteTile.js @@ -16,6 +16,15 @@ limitations under the License. 'use strict'; +var linkify = require('linkifyjs'); +var linkifyElement = require('linkifyjs/element'); +var linkifyMatrix = require('../../linkify-matrix'); + +linkifyMatrix(linkify); + module.exports = { + componentDidMount: function() { + linkifyElement(this.refs.content.getDOMNode(), linkifyMatrix.options); + } };