Commit 60dd37b6 authored by Ronan's avatar Ronan

fix(ui/modules/Linphone/Chat/FileMessage): use correct outgoing icons

parent 6aaf2124
<?xml version="1.0" encoding="UTF-8"?>
<svg width="12px" height="10px" viewBox="0 0 12 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<!-- Generator: Sketch 40.3 (33839) - http://www.bohemiancoding.com/sketch -->
<title>chat_send</title>
<desc>Created with Sketch.</desc>
<defs></defs>
<g id="Symbols" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round">
<g id="chat_send" stroke-width="2" stroke="#96C11F">
<polyline id="chat_message_delivered" points="1 4.16033709 5.24416844 8.99280009 10.9266196 1"></polyline>
</g>
</g>
</svg>
\ No newline at end of file
......@@ -63,7 +63,6 @@
<file>assets/images/chat_normal.svg</file>
<file>assets/images/chat_pressed.svg</file>
<file>assets/images/chat_read.svg</file>
<file>assets/images/chat_send.svg</file>
<file>assets/images/collapse.svg</file>
<file>assets/images/contact_add_hovered.svg</file>
<file>assets/images/contact_add_normal.svg</file>
......
......@@ -54,6 +54,8 @@ Row {
ChatModel.MessageStatusNotDelivered
], $chatEntry.status)
readonly property bool isRead: $chatEntry.status === ChatModel.MessageStatusDisplayed
color: $chatEntry.isOutgoing
? ChatStyle.entry.message.outgoing.backgroundColor
: ChatStyle.entry.message.incoming.backgroundColor
......@@ -200,7 +202,10 @@ Row {
id: icon
Icon {
icon: rectangle.isNotDelivered ? 'chat_error' : 'chat_send'
icon: rectangle.isNotDelivered
? 'chat_error'
: (rectangle.isRead ? 'chat_read' : 'chat_delivered')
iconSize: ChatStyle.entry.message.outgoing.sendIconSize
MouseArea {
......
......@@ -33,14 +33,14 @@ Item {
id: icon
Icon {
property bool isNotDelivered: Utils.includes([
readonly property bool isNotDelivered: Utils.includes([
ChatModel.MessageStatusFileTransferError,
ChatModel.MessageStatusIdle,
ChatModel.MessageStatusInProgress,
ChatModel.MessageStatusNotDelivered
], $chatEntry.status)
property bool isRead: $chatEntry.status === ChatModel.MessageStatusDisplayed
readonly property bool isRead: $chatEntry.status === ChatModel.MessageStatusDisplayed
icon: isNotDelivered
? 'chat_error'
......
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