Bot Trust Modal: Fix Markdown

This commit is contained in:
Alexander Zinchuk 2023-04-25 17:24:31 +04:00
parent 4f42b676ce
commit f2ab2269d7
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ const BotTrustModal: FC<OwnProps> = ({ bot, type, shouldRequestWriteAccess }) =>
title={title}
confirmHandler={handleBotTrustAccept}
>
{text}
{renderText(text, ['simple_markdown'])}
{shouldRequestWriteAccess && (
<Checkbox
className="dialog-checkbox"

View File

@ -45,7 +45,7 @@ export const CUSTOM_EMOJI_PREVIEW_CACHE_DISABLED = false;
export const CUSTOM_EMOJI_PREVIEW_CACHE_NAME = 'tt-custom-emoji-preview';
export const MEDIA_CACHE_MAX_BYTES = 512 * 1024; // 512 KB
export const CUSTOM_BG_CACHE_NAME = 'tt-custom-bg';
export const LANG_CACHE_NAME = 'tt-lang-packs-v18';
export const LANG_CACHE_NAME = 'tt-lang-packs-v19';
export const ASSET_CACHE_NAME = 'tt-assets';
export const AUTODOWNLOAD_FILESIZE_MB_LIMITS = [1, 5, 10, 50, 100, 500];
export const DATA_BROADCAST_CHANNEL_NAME = 'tt-global';