mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-21 15:05:19 +00:00
Adjusted sending of mms messages to show 'Uploading' rather than 'Sending' as per SES-1721
This commit is contained in:
parent
d3f8e928b6
commit
5fe123e7b5
@ -268,8 +268,7 @@ class VisibleMessageView : FrameLayout {
|
||||
// Method to display or hide the status of a message.
|
||||
// Note: Although most commonly used to display the delivery status of a message, we also use the
|
||||
// message status area to display the disappearing messages state - so in this latter case we'll
|
||||
// be displaying the "Sent" and the animating clock icon for outgoing messages or "Read" and the
|
||||
// animated clock icon for incoming messages.
|
||||
// be displaying either "Sent" or "Read" and the animating clock icon.
|
||||
private fun showStatusMessage(message: MessageRecord) {
|
||||
// We'll start by hiding everything and then only make visible what we need
|
||||
binding.messageStatusTextView.isVisible = false
|
||||
@ -392,11 +391,21 @@ class VisibleMessageView : FrameLayout {
|
||||
R.string.messageStatusFailedToSync
|
||||
)
|
||||
message.isPending ->
|
||||
MessageStatusInfo(
|
||||
R.drawable.ic_delivery_status_sending,
|
||||
context.getColorFromAttr(R.attr.message_status_color),
|
||||
R.string.sending
|
||||
)
|
||||
// Non-mms messages display 'Sending'..
|
||||
if (!message.isMms) {
|
||||
MessageStatusInfo(
|
||||
R.drawable.ic_delivery_status_sending,
|
||||
context.getColorFromAttr(R.attr.message_status_color),
|
||||
R.string.sending
|
||||
)
|
||||
} else {
|
||||
// ..and Mms messages display 'Uploading'.
|
||||
MessageStatusInfo(
|
||||
R.drawable.ic_delivery_status_sending,
|
||||
context.getColorFromAttr(R.attr.message_status_color),
|
||||
R.string.messageStatusUploading
|
||||
)
|
||||
}
|
||||
message.isSyncing || message.isResyncing ->
|
||||
MessageStatusInfo(
|
||||
R.drawable.ic_delivery_status_sending,
|
||||
|
@ -512,6 +512,7 @@
|
||||
<string name="messageStatusFailedToSend">Failed to send</string>
|
||||
<string name="messageStatusFailedToSync">Failed to sync</string>
|
||||
<string name="messageStatusSyncing">Syncing</string>
|
||||
<string name="messageStatusUploading">Uploading</string>
|
||||
<string name="messageUnread">Unread messages</string>
|
||||
<string name="messageVoice">Voice Message</string>
|
||||
<string name="messageVoiceErrorShort">Hold to record a voice message</string>
|
||||
|
Loading…
Reference in New Issue
Block a user