mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-10-31 16:24:11 +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 {
|
||||
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()
|
||||
}
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ struct LocationRoomTimelineItem: EventBasedMessageTimelineItemProtocol, Equatabl
|
||||
let content: LocationRoomTimelineItemContent
|
||||
|
||||
var body: String {
|
||||
content.body
|
||||
L10n.commonSharedLocation
|
||||
}
|
||||
|
||||
var replyDetails: TimelineItemReplyDetails?
|
||||
|
||||
Reference in New Issue
Block a user