Fix useless rich replies crash

Change-Id: I40103d9cb91365c421b411ce35a3b1e12f00ce00
This commit is contained in:
SpiritCroc 2022-12-04 12:04:40 +01:00
parent 0e2de3eadb
commit 32d076cbdf
1 changed files with 1 additions and 1 deletions

View File

@ -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