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