reskindex and use sdk.getComponent for EmojiText

This commit is contained in:
Aviral Dasgupta 2016-08-11 07:55:12 +05:30
parent 1b414cad18
commit 4c1dcb924b
10 changed files with 13 additions and 9 deletions

View file

@ -17,9 +17,10 @@
'use strict';
import React from 'react';
import EmojiText from '../elements/EmojiText';
import sdk from '../../../index';
export default function SenderProfile(props) {
const EmojiText = sdk.getComponent('elements.EmojiText');
const {mxEvent} = props;
const name = mxEvent.sender ? mxEvent.sender.name : mxEvent.getSender();
const {msgtype} = mxEvent.getContent();