Location event body representation (#1368)

* Change GeoURI body format

* Update location event representation
This commit is contained in:
Alfonso Grillo
2023-07-20 15:04:13 +02:00
committed by GitHub
parent f0ca15290f
commit ed27aa9a47
3 changed files with 4 additions and 2 deletions
@@ -675,6 +675,6 @@ private extension RoomFlowCoordinator {
private extension GeoURI {
var bodyMessage: String {
String(format: "Location was shared at %@ as of %@", string, Date().description)
"Location was shared at \(string)"
}
}
@@ -53,6 +53,8 @@ struct RoomEventStringBuilder {
message = L10n.commonVideo
case .file:
message = L10n.commonFile
case .location:
message = L10n.commonSharedLocation
default:
message = messageContent.body()
}
@@ -26,7 +26,7 @@ struct LocationRoomTimelineItem: EventBasedMessageTimelineItemProtocol, Equatabl
let content: LocationRoomTimelineItemContent
var body: String {
content.body
L10n.commonSharedLocation
}
var replyDetails: TimelineItemReplyDetails?