1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-07-12 19:45:23 +02:00

sbsmessagebase: fix message listview preferredHeight binding loop

Change-Id: I36ced4e4e15d1d047027c51b3136b676fcd2a2e7
This commit is contained in:
Ming Rui Zhang 2021-11-05 14:18:59 -04:00
parent 3dd206e6f0
commit cf72613d3c

View file

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