From c42d87d8fd219f56499a4e9daaf3caea4111c7ff Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 9 Jun 2026 14:08:34 +0400 Subject: [PATCH] Skip unsuppored blocks in IV. --- .../iv/markdown/iv_markdown_prepare_native_blocks.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Telegram/SourceFiles/iv/markdown/iv_markdown_prepare_native_blocks.cpp b/Telegram/SourceFiles/iv/markdown/iv_markdown_prepare_native_blocks.cpp index f69ccb0b79..6b4388bd1b 100644 --- a/Telegram/SourceFiles/iv/markdown/iv_markdown_prepare_native_blocks.cpp +++ b/Telegram/SourceFiles/iv/markdown/iv_markdown_prepare_native_blocks.cpp @@ -1640,9 +1640,7 @@ void ClearPreparedEditSources(std::vector *blocks) { } switch (block.kind) { case RichPageBlockKind::Unsupported: - return PrepareNativeIvPlainPlaceholderBlock( - u"Unsupported Content"_q, - result); + return true; case RichPageBlockKind::Heading: return AppendNativeIvFlowBlock( result, @@ -1848,9 +1846,7 @@ void ClearPreparedEditSources(std::vector *blocks) { path, PrepareNativeIvMapBlock); } - return PrepareNativeIvPlainPlaceholderBlock( - u"Unsupported Content"_q, - result); + return true; } [[nodiscard]] bool PrepareCanonicalNativeIvBlocks(