Update UpdatedReplyDecorator.kt

This commit is contained in:
Tulir Asokan 2024-11-18 21:50:01 +02:00 committed by GitHub
parent 367fcfa8f9
commit 6b5a284935
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -59,7 +59,7 @@ internal class UpdatedReplyDecorator(
val isRedactedEvent = timelineEventEntity.root?.asDomain()?.isRedacted() ?: false
val replyText = localEchoEventFactory
.bodyForReply(currentTimelineEvent.getLastMessageContent(), true).formattedText ?: ""
.bodyForReply(currentTimelineEvent.getLastMessageContent(), true).takeFormatted()
val newContent = localEchoEventFactory.createReplyTextContent(
timelineEventMapper.map(timelineEventEntity),