Show descriptions for locations.

Descriptions show in the same message bubble above the map in
the timeline, and in a bar at the top of the expanded map view.
This commit is contained in:
Chris Smith 2023-07-05 12:04:55 +01:00
parent 78a26c034e
commit 83338131fd
8 changed files with 31 additions and 15 deletions

View file

@ -55,7 +55,7 @@ class EventMessageMapper {
ImageMessageType(type.content.body, type.content.source.map(), type.content.info?.map())
}
is MessageType.Location -> {
LocationMessageType(type.content.body, type.content.geoUri)
LocationMessageType(type.content.body, type.content.geoUri, type.content.description)
}
is MessageType.Notice -> {
NoticeMessageType(type.content.body, type.content.formatted?.map())