Merge pull request #1802 from vector-im/feature/bma/emoteHtml

Fix rendering of emote when the message contains some formatting.
This commit is contained in:
Benoit Marty 2023-11-14 14:58:31 +01:00 committed by GitHub
commit 1df3f6113a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ class TimelineItemContentMessageFactory @Inject constructor(
return when (val messageType = content.type) {
is EmoteMessageType -> TimelineItemEmoteContent(
body = "* $senderDisplayName ${messageType.body}",
htmlDocument = messageType.formatted?.toHtmlDocument(prefix = "* senderDisplayName"),
htmlDocument = messageType.formatted?.toHtmlDocument(prefix = "* $senderDisplayName"),
isEdited = content.isEdited,
)
is ImageMessageType -> {