Updating reply description text
This commit is contained in:
parent
4bb9a68603
commit
7f43a1bb06
@ -713,7 +713,7 @@ internal class LocalEchoEventFactory @Inject constructor(
|
|||||||
MessageType.MSGTYPE_AUDIO -> return TextContent("sent an audio file.")
|
MessageType.MSGTYPE_AUDIO -> return TextContent("sent an audio file.")
|
||||||
MessageType.MSGTYPE_IMAGE -> return TextContent("sent an image.")
|
MessageType.MSGTYPE_IMAGE -> return TextContent("sent an image.")
|
||||||
MessageType.MSGTYPE_VIDEO -> return TextContent("sent a video.")
|
MessageType.MSGTYPE_VIDEO -> return TextContent("sent a video.")
|
||||||
MessageType.MSGTYPE_BEACON_INFO -> return TextContent(content.body.ensureNotEmpty() ?: "shared live location.")
|
MessageType.MSGTYPE_BEACON_INFO -> return TextContent(content.body.ensureNotEmpty() ?: "Live location")
|
||||||
MessageType.MSGTYPE_POLL_START -> {
|
MessageType.MSGTYPE_POLL_START -> {
|
||||||
return TextContent((content as? MessagePollContent)?.getBestPollCreationInfo()?.question?.getBestQuestion() ?: "")
|
return TextContent((content as? MessagePollContent)?.getBestPollCreationInfo()?.question?.getBestQuestion() ?: "")
|
||||||
}
|
}
|
||||||
|
@ -1257,7 +1257,7 @@ class TimelineFragment @Inject constructor(
|
|||||||
val nonFormattedBody = when (messageContent) {
|
val nonFormattedBody = when (messageContent) {
|
||||||
is MessageAudioContent -> getAudioContentBodyText(messageContent)
|
is MessageAudioContent -> getAudioContentBodyText(messageContent)
|
||||||
is MessagePollContent -> messageContent.getBestPollCreationInfo()?.question?.getBestQuestion()
|
is MessagePollContent -> messageContent.getBestPollCreationInfo()?.question?.getBestQuestion()
|
||||||
is MessageBeaconInfoContent -> getString(R.string.sent_live_location)
|
is MessageBeaconInfoContent -> getString(R.string.live_location_description)
|
||||||
else -> messageContent?.body.orEmpty()
|
else -> messageContent?.body.orEmpty()
|
||||||
}
|
}
|
||||||
var formattedBody: CharSequence? = null
|
var formattedBody: CharSequence? = null
|
||||||
|
@ -122,7 +122,7 @@ class LocationSharingAndroidService : VectorAndroidService(), LocationTracker.Ca
|
|||||||
?.locationSharingService()
|
?.locationSharingService()
|
||||||
?.startLiveLocationShare(
|
?.startLiveLocationShare(
|
||||||
timeoutMillis = roomArgs.durationMillis,
|
timeoutMillis = roomArgs.durationMillis,
|
||||||
description = getString(R.string.sent_live_location)
|
description = getString(R.string.live_location_description)
|
||||||
)
|
)
|
||||||
|
|
||||||
updateLiveResult
|
updateLiveResult
|
||||||
|
@ -3126,6 +3126,8 @@
|
|||||||
<string name="live_location_not_enough_permission_dialog_title">You don’t have permission to share live location</string>
|
<string name="live_location_not_enough_permission_dialog_title">You don’t have permission to share live location</string>
|
||||||
<string name="live_location_not_enough_permission_dialog_description">You need to have the right permissions in order to share live location in this room.</string>
|
<string name="live_location_not_enough_permission_dialog_description">You need to have the right permissions in order to share live location in this room.</string>
|
||||||
<string name="live_location_share_location_item_share">Share location</string>
|
<string name="live_location_share_location_item_share">Share location</string>
|
||||||
|
<!-- mostly used as a description when replying to a live location message -->
|
||||||
|
<string name="live_location_description">Live location</string>
|
||||||
|
|
||||||
<string name="message_bubbles">Show Message bubbles</string>
|
<string name="message_bubbles">Show Message bubbles</string>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user