Fixes emoji-only rendering within a story reply context
This commit is contained in:
parent
bdcdf424e6
commit
de84dc06c8
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue