Commit c2cde508 authored by Danmei Chen's avatar Danmei Chen

QT: set nothing on chat message when the user hasn't receive it

parent 21e87b0f
......@@ -41,10 +41,11 @@ Item {
], $chatEntry.status)
readonly property bool isRead: $chatEntry.status === ChatModel.MessageStatusDisplayed
readonly property bool isDeliveredToUser: $chatEntry.status === ChatModel.MessageStatusDeliveredToUser
icon: isNotDelivered
? 'chat_error'
: (isRead ? 'chat_read' : 'chat_delivered')
: (isRead ? 'chat_read' : (isDeliveredToUser ? 'chat_delivered' : ''))
iconSize: ChatStyle.entry.message.outgoing.sendIconSize
MouseArea {
......
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