1
0
Fork 0
mirror of https://git.jami.net/savoirfairelinux/jami-client-qt.git synced 2025-08-03 22:35:45 +02:00

messagelistview: show initial message

GitLab: #340
Change-Id: I209fc67c1bf64cd91b8b6fb9bc1d5bd651b10eb3
This commit is contained in:
Sébastien Blin 2021-12-17 13:50:31 -05:00
parent 9b275c4c83
commit f45fda3607
No known key found for this signature in database
GPG key ID: C894BB01EEB2A9A9
2 changed files with 14 additions and 0 deletions

View file

@ -30,6 +30,7 @@ Column {
property bool showTime: false
property int seq: MsgSeq.single
property alias font: textLabel.font
width: ListView.view ? ListView.view.width : 0
@ -38,6 +39,7 @@ Column {
bottomPadding: 12
Label {
id: textLabel
width: parent.width
text: Body
horizontalAlignment: Qt.AlignHCenter

View file

@ -223,6 +223,18 @@ JamiListView {
}
}
}
DelegateChoice {
roleValue: Interaction.Type.INITIAL
GeneratedMessageDelegate {
font.bold: true
Component.onCompleted: {
if (index)
computeTimestampVisibility(this, index)
else
Qt.callLater(computeTimestampVisibility, this, index)
}
}
}
DelegateChoice {
roleValue: Interaction.Type.DATA_TRANSFER
DataTransferMessageDelegate {