Add plain text representation of messages (#1850)

* Add plain text representation of messages.

This is used in the room list as the last message in a room, in the message summary when a message is selected, in the 'replying to' block, in the 'replied to' block in a message in the timeline, and in notifications.
This commit is contained in:
Jorge Martin Espinosa 2023-11-23 08:29:20 +01:00 committed by GitHub
parent b1f2370e72
commit f55d347387
24 changed files with 544 additions and 39 deletions

View file

@ -53,6 +53,7 @@ class NotificationMapper(
timestamp = item.timestamp() ?: clock.epochMillis(),
content = item.event.use { notificationContentMapper.map(it) },
contentUrl = null,
hasMention = item.hasMention.orFalse(),
)
}
}