mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 14:05:04 +08:00
16 lines
401 B
JavaScript
16 lines
401 B
JavaScript
|
var React = require('react');
|
||
|
|
||
|
module.exports = React.createClass({
|
||
|
render: function() {
|
||
|
var mxEvent = this.props.mxEvent;
|
||
|
var content = mxEvent.getContent();
|
||
|
var name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
|
||
|
return (
|
||
|
<span className="mx_MEmoteTile">
|
||
|
{name} {content.body}
|
||
|
</span>
|
||
|
);
|
||
|
},
|
||
|
});
|
||
|
|