1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-16 06:42:26 +03:00

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();