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 { ApiKeyboardButton, ApiMessage } from '../../../api/types';
|
||||||
|
|
||||||
import { RE_TME_LINK } from '../../../config';
|
import { RE_TME_LINK } from '../../../config';
|
||||||
|
import renderText from '../../common/helpers/renderText';
|
||||||
|
|
||||||
import Button from '../../ui/Button';
|
import Button from '../../ui/Button';
|
||||||
|
|
||||||
@ -25,7 +26,7 @@ const InlineButtons: FC<OwnProps> = ({ message, onClick }) => {
|
|||||||
disabled={button.type === 'NOT_SUPPORTED'}
|
disabled={button.type === 'NOT_SUPPORTED'}
|
||||||
onClick={() => onClick({ button })}
|
onClick={() => onClick({ button })}
|
||||||
>
|
>
|
||||||
{button.text}
|
{renderText(button.text)}
|
||||||
{button.type === 'url' && !button.value!.match(RE_TME_LINK) && <i className="icon-arrow-right" />}
|
{button.type === 'url' && !button.value!.match(RE_TME_LINK) && <i className="icon-arrow-right" />}
|
||||||
</Button>
|
</Button>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user