Message / Inline Buttons: Fix emoji rendering on Windows/Android (#1263)

This commit is contained in:
Alexander Zinchuk 2021-07-14 14:12:55 +03:00
parent b1c4e82d07
commit 6e8676161d

View File

@ -3,6 +3,7 @@ import React, { FC } from '../../../lib/teact/teact';
import { ApiKeyboardButton, ApiMessage } from '../../../api/types';
import { RE_TME_LINK } from '../../../config';
import renderText from '../../common/helpers/renderText';
import Button from '../../ui/Button';
@ -25,7 +26,7 @@ const InlineButtons: FC<OwnProps> = ({ message, onClick }) => {
disabled={button.type === 'NOT_SUPPORTED'}
onClick={() => onClick({ button })}
>
{button.text}
{renderText(button.text)}
{button.type === 'url' && !button.value!.match(RE_TME_LINK) && <i className="icon-arrow-right" />}
</Button>
))}