mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-30 13:35:18 +00:00
Hide sender prefix for control messages
This commit is contained in:
parent
dd345cbf07
commit
b487d5aa64
@ -140,7 +140,7 @@ class ConversationView : LinearLayout {
|
|||||||
val body = getDisplayBody(context)
|
val body = getDisplayBody(context)
|
||||||
|
|
||||||
when {
|
when {
|
||||||
recipient.isLocalNumber -> body // Note to self
|
recipient.isLocalNumber || lastMessage?.isControlMessage == true -> body // Note to self
|
||||||
lastMessage?.isOutgoing == true -> {
|
lastMessage?.isOutgoing == true -> {
|
||||||
TextUtils.concat(resources.getString(R.string.MessageRecord_you), ": ", body)
|
TextUtils.concat(resources.getString(R.string.MessageRecord_you), ": ", body)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user