1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

quick and dirty RoomAvatarEvent

This commit is contained in:
Matthew Hodgson
2017-06-01 13:31:24 +01:00
parent d689d4e1fa
commit 00750b4686
7 changed files with 22 additions and 9 deletions

View File

@@ -24,6 +24,11 @@ import sdk from '../../../index';
module.exports = React.createClass({
displayName: 'TextualEvent',
propTypes: {
/* the MatrixEvent to show */
mxEvent: React.PropTypes.object.isRequired,
},
render: function() {
const EmojiText = sdk.getComponent('elements.EmojiText');
var text = TextForEvent.textForEvent(this.props.mxEvent);