From de84dc06c883c749db0d76403b37309820e0bcd0 Mon Sep 17 00:00:00 2001 From: Josh Perez <60019601+josh-signal@users.noreply.github.com> Date: Thu, 18 Aug 2022 19:28:51 -0400 Subject: [PATCH] Fixes emoji-only rendering within a story reply context --- ts/components/conversation/Message.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/components/conversation/Message.tsx b/ts/components/conversation/Message.tsx index 2c5d03c56319..1c1bdd35f3fe 100644 --- a/ts/components/conversation/Message.tsx +++ b/ts/components/conversation/Message.tsx @@ -773,13 +773,15 @@ export class Message extends React.PureComponent { } private canRenderStickerLikeEmoji(): boolean { - const { text, quote, attachments, previews } = this.props; + const { text, quote, storyReplyContext, attachments, previews } = + this.props; return Boolean( text && isEmojiOnlyText(text) && getEmojiCount(text) < 6 && !quote && + !storyReplyContext && (!attachments || !attachments.length) && (!previews || !previews.length) );