diff --git a/package.json b/package.json index 1b8e78e695..5b566909fc 100644 --- a/package.json +++ b/package.json @@ -46,5 +46,10 @@ "packageManager": "yarn@4.4.0", "eslintConfig": { "extends": "@rocket.chat/eslint-config-alt" - } + }, + "version": "1.0.0", + "description": "

\"Rocket.Chat\"

", + "main": "index.js", + "author": "", + "license": "ISC" } diff --git a/packages/fuselage/src/components/Message/MessageEmoji.tsx b/packages/fuselage/src/components/Message/MessageEmoji.tsx index e5ed190e10..f32a0746bf 100644 --- a/packages/fuselage/src/components/Message/MessageEmoji.tsx +++ b/packages/fuselage/src/components/Message/MessageEmoji.tsx @@ -1,5 +1,4 @@ import type { ComponentProps } from 'react'; - import { MessageEmojiBase } from './MessageEmojiBase'; type MessageEmojiProps = ComponentProps & { diff --git a/packages/fuselage/src/components/Message/MessageEmojiBase.tsx b/packages/fuselage/src/components/Message/MessageEmojiBase.tsx index b827d676b4..796c7dcff8 100644 --- a/packages/fuselage/src/components/Message/MessageEmojiBase.tsx +++ b/packages/fuselage/src/components/Message/MessageEmojiBase.tsx @@ -10,10 +10,22 @@ export const MessageEmojiBase = ({ image, className, ...props -}: MessageEmojiBaseProps) => ( - -); +}: MessageEmojiBaseProps) => { + // Detect if the name prop is a ZWJ sequence + const isZWJSequence = name.includes('\u200D'); // '\u200D' is the Unicode for ZWJ + + return ( + + {/* Render the name directly if it's a ZWJ sequence to let the browser handle rendering */} + {isZWJSequence ? name : null} + + ); +};