From 32d076cbdf5223665074dc0bd9dca5dcb2c00f52 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Sun, 4 Dec 2022 12:04:40 +0100 Subject: [PATCH] Fix useless rich replies crash Change-Id: I40103d9cb91365c421b411ce35a3b1e12f00ce00 --- .../features/home/room/detail/timeline/reply/InReplyToView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/reply/InReplyToView.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/reply/InReplyToView.kt index 0e22bca042..301509fe77 100755 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/reply/InReplyToView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/reply/InReplyToView.kt @@ -187,7 +187,7 @@ class InReplyToView @JvmOverloads constructor( val bindingOptions: BindingOptions? val text = if (formattedBody != null) { val compressed = retriever.htmlCompressor.compress(formattedBody) - val renderedFormattedBody = retriever.htmlRenderer.render(compressed, retriever.pillsPostProcessor) as Spanned + val renderedFormattedBody = retriever.htmlRenderer.render(compressed, retriever.pillsPostProcessor) val renderedBody = retriever.textRenderer.render(renderedFormattedBody) bindingOptions = retriever.spanUtils.getBindingOptions(renderedBody) // To be re-enabled if we want clickable urls in reply previews, which would conflict with going to the original event on clicking