mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-26 09:47:43 +00:00
Fix snippet
This commit is contained in:
parent
85ee87f619
commit
6507b0a973
@ -142,7 +142,7 @@ class ConversationView : LinearLayout {
|
|||||||
private fun ThreadRecord.getSnippet(): CharSequence = listOfNotNull(
|
private fun ThreadRecord.getSnippet(): CharSequence = listOfNotNull(
|
||||||
getSnippetPrefix(),
|
getSnippetPrefix(),
|
||||||
getDisplayBody(context)
|
getDisplayBody(context)
|
||||||
).joinToString { ": " }
|
).joinToString(": ")
|
||||||
|
|
||||||
private fun ThreadRecord.getSnippetPrefix(): CharSequence? = when {
|
private fun ThreadRecord.getSnippetPrefix(): CharSequence? = when {
|
||||||
recipient.isLocalNumber || lastMessage?.isControlMessage == true -> null
|
recipient.isLocalNumber || lastMessage?.isControlMessage == true -> null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user