mirror of
https://github.com/danog/telegram-tt.git
synced 2024-11-27 12:55:11 +01:00
Message / Inline Buttons: Fix emoji rendering on Windows/Android (#1263)
This commit is contained in:
parent
b1c4e82d07
commit
6e8676161d
@ -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>
|
||||
))}
|
||||
|
Loading…
Reference in New Issue
Block a user