You've already forked matrix-react-sdk
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user