Message: Remove unnecessary code (#1191)

This commit is contained in:
Alexander Zinchuk 2021-06-19 17:47:16 +03:00
parent 4e83151106
commit 3a98f5f2ca

View File

@ -764,7 +764,6 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
style={style} style={style}
dir="auto" dir="auto"
> >
{withAppendix && (<div className="svg-appendix" ref={appendixRef} />)}
{asForwarded && !customShape && (!isInDocumentGroup || isFirstInDocumentGroup) && ( {asForwarded && !customShape && (!isInDocumentGroup || isFirstInDocumentGroup) && (
<div className="message-title">{lang('ForwardedMessage')}</div> <div className="message-title">{lang('ForwardedMessage')}</div>
)} )}
@ -801,7 +800,7 @@ const Message: FC<OwnProps & StateProps & DispatchProps> = ({
</Button> </Button>
) : undefined} ) : undefined}
{withCommentButton && <CommentButton message={message} disabled={noComments} />} {withCommentButton && <CommentButton message={message} disabled={noComments} />}
{contentClassName.includes('has-appendix') && <div className="svg-appendix" ref={appendixRef} />} {withAppendix && <div className="svg-appendix" ref={appendixRef} />}
</div> </div>
{message.inlineButtons && ( {message.inlineButtons && (
<InlineButtons message={message} onClick={clickInlineButton} /> <InlineButtons message={message} onClick={clickInlineButton} />