From cf72613d3c5282cfb46e2bf1e4e1d57e726abced Mon Sep 17 00:00:00 2001
From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com>
Date: Fri, 5 Nov 2021 14:18:59 -0400
Subject: [PATCH] sbsmessagebase: fix message listview preferredHeight binding
 loop

Change-Id: I36ced4e4e15d1d047027c51b3136b676fcd2a2e7
---
 src/commoncomponents/SBSMessageBase.qml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/commoncomponents/SBSMessageBase.qml b/src/commoncomponents/SBSMessageBase.qml
index 2de0fe34c..ebb989dba 100644
--- a/src/commoncomponents/SBSMessageBase.qml
+++ b/src/commoncomponents/SBSMessageBase.qml
@@ -114,13 +114,15 @@ Control {
             orientation: ListView.Horizontal
             Layout.preferredHeight: {
                 if (showTime || seq === MsgSeq.last)
-                    return childrenRect.height
+                    return contentHeight + formattedTimeLabel.contentHeight
                 else if (reads.visible)
                     return JamiTheme.avatarReadReceiptSize
                 return 0
             }
 
             Label {
+                id: formattedTimeLabel
+
                 text: formattedTime
                 color: JamiTheme.timestampColor
                 visible: showTime || seq === MsgSeq.last
-- 
GitLab