Twemojify name suggestion

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2022-01-27 11:20:36 +05:30
parent e15e690c5d
commit a67b32b3ce

View file

@ -5,6 +5,8 @@ import './RoomViewCmdBar.scss';
import parse from 'html-react-parser';
import twemoji from 'twemoji';
import { twemojify } from '../../../util/twemojify';
import initMatrix from '../../../client/initMatrix';
import { toggleMarkdown } from '../../../client/action/settings';
import * as roomActions from '../../../client/action/room';
@ -143,7 +145,7 @@ function renderSuggestions({ prefix, option, suggestions }, fireCmd) {
});
}}
>
<Text variant="b2">{member.name}</Text>
<Text variant="b2">{twemojify(member.name)}</Text>
</CmdItem>
));
}