From 799279eb5d48a91173b34965d189e15946fb656a Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Wed, 19 Apr 2023 17:09:45 +0200 Subject: [PATCH] Do not ellipsize message previews due to trailing newline Change-Id: I8e6a43f6599e209f40e676a8bdb1754fb6a6e93e --- .../room/detail/timeline/format/DisplayableEventFormatter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt index f4e9489294..c8987307a9 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/format/DisplayableEventFormatter.kt @@ -288,7 +288,7 @@ class DisplayableEventFormatter @Inject constructor( .append(body) } else { "\u2068$body" - } + }.removeSuffix("\n") } private fun formatVoiceBroadcastEvent(event: Event, isDm: Boolean, senderName: String): CharSequence {