From 10a63f8949758cdd490e19a156f3e641abd2e996 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 4 Jan 2022 16:16:13 +0100 Subject: [PATCH] Fix code after #4837 has been merged --- .../features/home/room/detail/timeline/item/MessageTextItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt index 2f7631006a..e9563aa69c 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/MessageTextItem.kt @@ -100,7 +100,7 @@ abstract class MessageTextItem : AbsMessageItem() { } else { null } - markwonPlugins?.forEach { plugin -> plugin.beforeSetText(holder.messageView, message as Spanned) } + markwonPlugins?.forEach { plugin -> plugin.beforeSetText(holder.messageView, message?.charSequence as Spanned) } super.bind(holder) holder.messageView.movementMethod = movementMethod renderSendState(holder.messageView, holder.messageView)