Skip to content
Snippets Groups Projects
Commit 6b1090f3 authored by Taras's avatar Taras
Browse files

Remove user id prefix for replies

parent 1e1d6757
No related branches found
No related tags found
No related merge requests found
......@@ -333,10 +333,6 @@ internal class LocalEchoEventFactory @Inject constructor(
bodyFormatted,
newBodyFormatted
)
//
// > <@alice:example.org> This is the original body
//
val replyFallback = buildReplyFallback(body, originalEvent.root.senderId ?: "", newBodyText)
return createMessageEvent(
roomId,
......@@ -347,7 +343,7 @@ internal class LocalEchoEventFactory @Inject constructor(
newContent = MessageTextContent(
msgType = msgType,
format = MessageFormat.FORMAT_MATRIX_HTML,
body = replyFallback,
body = newBodyText,
formattedBody = replyFormatted
)
.toContent()
......@@ -639,16 +635,12 @@ internal class LocalEchoEventFactory @Inject constructor(
bodyFormatted,
finalReplyTextFormatted
)
//
// > <@alice:example.org> This is the original body
//
val replyFallback = buildReplyFallback(body, userId, replyText.toString())
val eventId = eventReplied.root.eventId ?: return null
return MessageTextContent(
msgType = MessageType.MSGTYPE_TEXT,
format = MessageFormat.FORMAT_MATRIX_HTML,
body = replyFallback,
body = replyText.toString(),
formattedBody = replyFormatted,
relatesTo = generateReplyRelationContent(
eventId = eventId,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment