Skip to content

Commit 6cb4a9a

Browse files
committed
Fix rendering of emote when the message contains some formatting.
1 parent d648f85 commit 6cb4a9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentMessageFactory.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class TimelineItemContentMessageFactory @Inject constructor(
6161
return when (val messageType = content.type) {
6262
is EmoteMessageType -> TimelineItemEmoteContent(
6363
body = "* $senderDisplayName ${messageType.body}",
64-
htmlDocument = messageType.formatted?.toHtmlDocument(prefix = "* senderDisplayName"),
64+
htmlDocument = messageType.formatted?.toHtmlDocument(prefix = "* $senderDisplayName"),
6565
isEdited = content.isEdited,
6666
)
6767
is ImageMessageType -> {

0 commit comments

Comments
 (0)