From 8baeba3ba061e96d584441adfbb0412cc40d557d Mon Sep 17 00:00:00 2001 From: "Mehdi.Bagvand" Date: Tue, 13 Jun 2023 12:16:53 +0330 Subject: [PATCH] fix mentions in replies don't work #4425 --- .../home/room/detail/composer/MessageComposerViewModel.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt index d52cf0cbd37..0abf37a08f2 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/composer/MessageComposerViewModel.kt @@ -625,14 +625,14 @@ class MessageComposerViewModel @AssistedInject constructor( state.rootThreadEventId?.let { room.relationService().replyInThread( rootThreadEventId = it, - replyInThreadText = action.text.toString(), + replyInThreadText = action.text, autoMarkdown = action.autoMarkdown, formattedText = action.formattedText, eventReplied = timelineEvent ) } ?: room.relationService().replyToMessage( eventReplied = timelineEvent, - replyText = action.text.toString(), + replyText = action.text, replyFormattedText = action.formattedText, autoMarkdown = action.autoMarkdown, showInThread = showInThread,