Fixes emoji-only rendering within a story reply context

This commit is contained in:
Josh Perez 2022-08-18 19:28:51 -04:00 committed by GitHub
parent bdcdf424e6
commit de84dc06c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -773,13 +773,15 @@ export class Message extends React.PureComponent<Props, State> {
}
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)
);