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 {
|
private canRenderStickerLikeEmoji(): boolean {
|
||||||
const { text, quote, attachments, previews } = this.props;
|
const { text, quote, storyReplyContext, attachments, previews } =
|
||||||
|
this.props;
|
||||||
|
|
||||||
return Boolean(
|
return Boolean(
|
||||||
text &&
|
text &&
|
||||||
isEmojiOnlyText(text) &&
|
isEmojiOnlyText(text) &&
|
||||||
getEmojiCount(text) < 6 &&
|
getEmojiCount(text) < 6 &&
|
||||||
!quote &&
|
!quote &&
|
||||||
|
!storyReplyContext &&
|
||||||
(!attachments || !attachments.length) &&
|
(!attachments || !attachments.length) &&
|
||||||
(!previews || !previews.length)
|
(!previews || !previews.length)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue