mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Location event body representation (#1368)
* Change GeoURI body format * Update location event representation
This commit is contained in:
@@ -675,6 +675,6 @@ private extension RoomFlowCoordinator {
|
|||||||
|
|
||||||
private extension GeoURI {
|
private extension GeoURI {
|
||||||
var bodyMessage: String {
|
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
|
message = L10n.commonVideo
|
||||||
case .file:
|
case .file:
|
||||||
message = L10n.commonFile
|
message = L10n.commonFile
|
||||||
|
case .location:
|
||||||
|
message = L10n.commonSharedLocation
|
||||||
default:
|
default:
|
||||||
message = messageContent.body()
|
message = messageContent.body()
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -26,7 +26,7 @@ struct LocationRoomTimelineItem: EventBasedMessageTimelineItemProtocol, Equatabl
|
|||||||
let content: LocationRoomTimelineItemContent
|
let content: LocationRoomTimelineItemContent
|
||||||
|
|
||||||
var body: String {
|
var body: String {
|
||||||
content.body
|
L10n.commonSharedLocation
|
||||||
}
|
}
|
||||||
|
|
||||||
var replyDetails: TimelineItemReplyDetails?
|
var replyDetails: TimelineItemReplyDetails?
|
||||||
|
|||||||
Reference in New Issue
Block a user