From 6507b0a97349e7948612ee52a739cf602fd38a14 Mon Sep 17 00:00:00 2001 From: bemusementpark Date: Tue, 16 Jul 2024 02:25:53 +0930 Subject: [PATCH] Fix snippet --- .../java/org/thoughtcrime/securesms/home/ConversationView.kt | 2 +- .../attachments/SessionServiceAttachmentStream.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt b/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt index a040e55562..4647156a01 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/home/ConversationView.kt @@ -142,7 +142,7 @@ class ConversationView : LinearLayout { private fun ThreadRecord.getSnippet(): CharSequence = listOfNotNull( getSnippetPrefix(), getDisplayBody(context) - ).joinToString { ": " } + ).joinToString(": ") private fun ThreadRecord.getSnippetPrefix(): CharSequence? = when { recipient.isLocalNumber || lastMessage?.isControlMessage == true -> null diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/attachments/SessionServiceAttachmentStream.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/attachments/SessionServiceAttachmentStream.kt index 72966f908c..3da1161cb0 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/attachments/SessionServiceAttachmentStream.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/attachments/SessionServiceAttachmentStream.kt @@ -72,4 +72,4 @@ class SessionServiceAttachmentStream(val inputStream: InputStream?, contentType: return null } } -} \ No newline at end of file +}