mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-18 04:51:47 +03:00
Merge pull request #6416 from robintown/non-emoji-reactions
This commit is contained in:
commit
5a7fe60d0e
1 changed files with 2 additions and 2 deletions
|
@ -79,8 +79,8 @@ function mightContainEmoji(str: string): boolean {
|
|||
* @return {String} The shortcode (such as :thumbup:)
|
||||
*/
|
||||
export function unicodeToShortcode(char: string): string {
|
||||
const shortcodes = getEmojiFromUnicode(char).shortcodes;
|
||||
return shortcodes.length > 0 ? `:${shortcodes[0]}:` : '';
|
||||
const shortcodes = getEmojiFromUnicode(char)?.shortcodes;
|
||||
return shortcodes?.length ? `:${shortcodes[0]}:` : '';
|
||||
}
|
||||
|
||||
export function processHtmlForSending(html: string): string {
|
||||
|
|
Loading…
Reference in a new issue