You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-12-04 09:42:42 +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