File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
ts/components/conversation/message/message-content Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -200,7 +200,9 @@ export const MessageBody = (props: Props) => {
200
200
) ;
201
201
}
202
202
203
- if ( window . getSettingValue ( 'message-formatting' ) ) {
203
+ const onlyEmoji = text . match ( / ^ ( ( \ud83c [ \udde6 - \uddff ] ) { 2 } | ( [ \# \* 0 - 9 ] \u20e3 ) | ( \u00a9 | \u00ae | [ \u2000 - \u3300 ] | [ \u / d 8 3 c - \ud83e ] [ \ud000 - \udfff ] ) ( ( \ud83c [ \udffb - \udfff ] ) ? ( \ud83e [ \uddb0 - \uddb3 ] ) ? ( \ufe0f ? \u200d ( [ \u2000 - \u3300 ] | [ \ud83c - \ud83e ] [ \ud000 - \udfff ] ) \ufe0f ? ) ? ) * ) $ / )
204
+
205
+ if ( window . getSettingValue ( 'message-formatting' ) && ! onlyEmoji ) {
204
206
/* Resolve mentioned ids to user names and mark them up in bold */
205
207
const mention = new RegExp ( `@${ PubKey . regexForPubkeys } ` , 'g' ) ;
206
208
const textWithMentions = text . trim ( ) . replace ( mention ,
You can’t perform that action at this time.
0 commit comments