You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-17 17:42:41 +03:00
Add EmojiText component for emoji replacement.
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
'use strict';
|
||||
|
||||
import React from 'react';
|
||||
import {emojifyText} from '../../../HtmlUtils';
|
||||
import EmojiText from '../elements/EmojiText';
|
||||
|
||||
export default function SenderProfile(props) {
|
||||
const {mxEvent} = props;
|
||||
@@ -29,10 +29,8 @@ export default function SenderProfile(props) {
|
||||
}
|
||||
|
||||
return (
|
||||
<span className="mx_SenderProfile"
|
||||
dangerouslySetInnerHTML={emojifyText(`${name || ''} ${props.aux || ''}`)}
|
||||
onClick={props.onClick}>
|
||||
</span>
|
||||
<EmojiText className="mx_SenderProfile"
|
||||
onClick={props.onClick}>{`${name || ''} ${props.aux || ''}`}</EmojiText>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user