From 8d55c5ef9a26a3af59556b15504a6358c612c6cc Mon Sep 17 00:00:00 2001 From: SpiritCroc <dev@spiritcroc.de> Date: Mon, 7 Dec 2020 18:55:19 +0100 Subject: [PATCH] Fix too wide message bubbles when hiding information Change-Id: I8507bf146a415237bef95683eb7a2f031bee9b7e --- .../features/home/room/detail/timeline/item/AbsMessageItem.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageItem.kt b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageItem.kt index 689d745088..414a2195c7 100644 --- a/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageItem.kt +++ b/vector/src/main/java/im/vector/app/features/home/room/detail/timeline/item/AbsMessageItem.kt @@ -251,7 +251,7 @@ abstract class AbsMessageItem<H : AbsMessageItem.Holder> : AbsBaseMessageItem<H> val time = attributes.informationData.time.toString() return if (contentInBubble) { if (BubbleThemeUtils.getBubbleTimeLocation(holder.bubbleTimeView.context) == BubbleThemeUtils.BUBBLE_TIME_BOTTOM) { - if (attributes.informationData.showInformation) { + if (attributes.informationData.showInformation && !canHideAvatars()) { // 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(BubbleThemeUtils.guessTextWidth(holder.bubbleMemberNameView, "$memberName ")).toInt()