fix(@chat): do not display date if there is no date

This commit is contained in:
Anthony Laibe 2022-05-17 15:38:37 +02:00 committed by Iuri Matias
parent e944263b57
commit 92b9ef891d
1 changed files with 4 additions and 0 deletions

View File

@ -11,8 +11,10 @@ Item {
height: childrenRect.height + Style.current.smallPadding * 2
anchors.left: parent.left
anchors.right: parent.right
property int nextMessageIndex
property string nextMsgTimestamp
signal clicked()
signal timerTriggered()
@ -80,7 +82,9 @@ Item {
horizontalAlignment: Text.AlignHCenter
color: Style.current.secondaryText
text: qsTr("before--%1").arg(d.formattedDate)
visible: d.formattedDate
}
Separator {
anchors.top: fetchDate.bottom
anchors.topMargin: Style.current.smallPadding