From 473ab59b1d4b1458004927e359064392e9c1e1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C5=BBerko?= Date: Fri, 26 Apr 2024 15:55:41 +0200 Subject: [PATCH] fix: empty html message --- .../kotlin/com/wire/android/ui/markdown/MarkdownHelper.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/markdown/MarkdownHelper.kt b/app/src/main/kotlin/com/wire/android/ui/markdown/MarkdownHelper.kt index 2e6a35ce550..366ed3566e2 100644 --- a/app/src/main/kotlin/com/wire/android/ui/markdown/MarkdownHelper.kt +++ b/app/src/main/kotlin/com/wire/android/ui/markdown/MarkdownHelper.kt @@ -68,7 +68,9 @@ fun T.toContent(isParentDocument: Boolean = false): MarkdownNode { is FencedCodeBlock -> MarkdownNode.Block.FencedCode(isParentDocument, literal) is IndentedCodeBlock -> MarkdownNode.Block.IntendedCode(isParentDocument, literal) - is HtmlBlock -> MarkdownNode.Inline.Text(this.literal) // TODO unsupported html + is HtmlBlock -> MarkdownNode.Block.Paragraph( + children = listOf(MarkdownNode.Inline.Text(this.literal)), isParentDocument + ) // TODO unsupported html is TableBlock -> MarkdownNode.Block.Table(convertChildren(), isParentDocument) is TableHead -> MarkdownNode.Block.TableContent.Head(convertChildren())