[merge] Fix minimum bubble width for long sender names

Change-Id: I32aa8b8dfc40ce29e2414f04ae8933a836d9ebc3
This commit is contained in:
SpiritCroc 2022-03-03 08:48:38 +01:00
parent a8f10a95da
commit 8afa535fe6
1 changed files with 1 additions and 1 deletions

View File

@ -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()