Commit a0e92aff authored by Ronan's avatar Ronan
Browse files

fix(ui/modules/Linphone/Chat/OutgoingMessage): remove message status

parent 0793a7ec
......@@ -809,21 +809,6 @@ your friend&apos;s SIP address or username.</translation>
<translation>Select you active account</translation>
</message>
</context>
<context>
<name>OutgoingMessage</name>
<message>
<source>Error</source>
<translation>Error</translation>
</message>
<message>
<source>Read</source>
<translation>Read</translation>
</message>
<message>
<source>Delivered</source>
<translation>Delivered</translation>
</message>
</context>
<context>
<name>Presence</name>
<message>
......
......@@ -808,21 +808,6 @@ un chat ou ajouter un contact.</translation>
<translation>Sélectionner votre compte principal</translation>
</message>
</context>
<context>
<name>OutgoingMessage</name>
<message>
<source>Error</source>
<translation>Erreur</translation>
</message>
<message>
<source>Read</source>
<translation>Lu</translation>
</message>
<message>
<source>Delivered</source>
<translation>Délivré</translation>
</message>
</context>
<context>
<name>Presence</name>
<message>
......
......@@ -40,6 +40,4 @@ QtObject {
property color z: '#17A81A'
property color error: '#FF0000'
property color read: '#18A7AF'
property color delivered: '#A7A7A7'
}
......@@ -32,7 +32,7 @@ Item {
Component {
id: icon
RowLayout {
Icon {
property bool isNotDelivered: Utils.includes([
ChatModel.MessageStatusFileTransferError,
ChatModel.MessageStatusIdle,
......@@ -40,33 +40,16 @@ Item {
ChatModel.MessageStatusNotDelivered
], $chatEntry.status)
property bool isRead: Utils.includes([
ChatModel.MessageStatusDisplayed
], $chatEntry.status)
Text {
text: isNotDelivered ? qsTr("Error") : isRead ? qsTr("Read") : qsTr("Delivered")
color: isNotDelivered ? Colors.error : isRead ? Colors.read : Colors.delivered
font.pointSize: ChatStyle.entry.message.outgoing.fontSize
}
Icon {
icon: isNotDelivered ? 'chat_error' : isRead ? 'chat_read' : 'chat_delivered'
iconSize: ChatStyle.entry.message.outgoing.sendIconSize
MouseArea {
anchors.fill: parent
onClicked: isNotDelivered && proxyModel.resendMessage(index)
}
}
property bool isRead: $chatEntry.status === ChatModel.MessageStatusDisplayed
ActionButton {
height: ChatStyle.entry.lineHeight
icon: 'delete'
iconSize: ChatStyle.entry.deleteIconSize
visible: isHoverEntry()
icon: isNotDelivered
? 'chat_error'
: (isRead ? 'chat_read' : 'chat_delivered')
iconSize: ChatStyle.entry.message.outgoing.sendIconSize
onClicked: removeEntry()
MouseArea {
anchors.fill: parent
onClicked: isNotDelivered && proxyModel.resendMessage(index)
}
}
}
......@@ -84,6 +67,15 @@ Item {
? indicator
: icon
}
ActionButton {
height: ChatStyle.entry.lineHeight
icon: 'delete'
iconSize: ChatStyle.entry.deleteIconSize
visible: isHoverEntry()
onClicked: removeEntry()
}
}
}
}
......@@ -96,8 +96,7 @@ QtObject {
property QtObject outgoing: QtObject {
property color backgroundColor: Colors.e
property int sendIconSize: 10
property int fontSize: 8
property int sendIconSize: 12
property QtObject text: QtObject {
property color color: Colors.r
......
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