From 8afa535fe6bc4313449a956771abe40197db3fa3 Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Thu, 3 Mar 2022 08:48:38 +0100 Subject: [PATCH] [merge] Fix minimum bubble width for long sender names Change-Id: I32aa8b8dfc40ce29e2414f04ae8933a836d9ebc3 --- .../home/room/detail/timeline/view/ScMessageBubbleWrapView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/view/ScMessageBubbleWrapView.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/view/ScMessageBubbleWrapView.kt index a76fb4ff8d..85fc35f614 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/view/ScMessageBubbleWrapView.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/view/ScMessageBubbleWrapView.kt @@ -534,7 +534,7 @@ class ScMessageBubbleWrapView @JvmOverloads constructor(context: Context, attrs: val time = attributes.informationData.time.toString() val result = if (contentInBubble) { if (getBubbleTimeLocation(messageLayout) == BUBBLE_TIME_BOTTOM) { - if (attributes.informationData.messageLayout.showDisplayName && canHideSender) { + if (attributes.informationData.messageLayout.showDisplayName && !canHideSender) { // Since timeView automatically gets enough space, either within or outside the viewStub, we just need to ensure the member name view has enough space // Somehow not enough without extra space... ceil(guessTextWidth(views.bubbleMessageMemberNameView, "$memberName ")).toInt()