Commit 4e565cab authored by LNJ's avatar LNJ 💬

ChatMessage: Rename isRead property to isDelivered

Fixes #309.
parent 28986ab6
......@@ -181,7 +181,7 @@ Kirigami.ScrollablePage {
sentByMe: model.sentByMe
messageBody: model.body
dateTime: new Date(model.timestamp)
isRead: model.isDelivered
isDelivered: model.isDelivered
name: chatName
mediaType: model.mediaType
mediaGetUrl: model.mediaUrl
......
......@@ -43,7 +43,7 @@ RowLayout {
property bool sentByMe: true
property string messageBody
property date dateTime
property bool isRead: false
property bool isDelivered: false
property int mediaType
property string mediaGetUrl
property string mediaLocation
......@@ -249,7 +249,7 @@ RowLayout {
}
}
}
// message meta: date, isRead
// message meta: date, isDelivered
RowLayout {
// progress bar for upload/download status
Controls.ProgressBar {
......@@ -267,7 +267,7 @@ RowLayout {
Image {
id: checkmark
visible: (sentByMe && isRead)
visible: (sentByMe && isDelivered)
source: kaidan.utils.getResourcePath("images/message_checkmark.svg")
Layout.preferredHeight: Kirigami.Units.gridUnit * 0.65
Layout.preferredWidth: Kirigami.Units.gridUnit * 0.65
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment