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:
parent
9b275c4c83
commit
f45fda3607
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue