reskindex and use sdk.getComponent for EmojiText
This commit is contained in:
parent
1b414cad18
commit
4c1dcb924b
10 changed files with 13 additions and 9 deletions
|
@ -19,7 +19,7 @@ limitations under the License.
|
|||
var React = require('react');
|
||||
|
||||
var TextForEvent = require('../../../TextForEvent');
|
||||
import EmojiText from '../elements/EmojiText';
|
||||
import sdk from '../../../index';
|
||||
|
||||
module.exports = React.createClass({
|
||||
displayName: 'TextualEvent',
|
||||
|
@ -31,6 +31,7 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
render: function() {
|
||||
const EmojiText = sdk.getComponent('elements.EmojiText');
|
||||
var text = TextForEvent.textForEvent(this.props.mxEvent);
|
||||
if (text == null || text.length === 0) return null;
|
||||
return (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue