fix: ensure sending message state isn't shown when message is expired

This commit is contained in:
Pascal Precht 2020-11-12 15:17:29 +01:00 committed by Iuri Matias
parent cecaa292ba
commit 4ac8400038
3 changed files with 2 additions and 3 deletions

View File

@ -114,7 +114,7 @@ Item {
SentMessage {
id: sentMessage
visible: isCurrentUser && !timeout && isMessage && outgoingStatus !== "sent"
visible: isCurrentUser && !timeout && !isExpired && isMessage && outgoingStatus !== "sent"
anchors.verticalCenter: chatTime.verticalCenter
anchors.left: chatTime.right
anchors.leftMargin: 8

View File

@ -180,7 +180,7 @@ Item {
SentMessage {
id: sentMessage
visible: isCurrentUser && !timeout && isMessage && outgoingStatus !== "sent"
visible: isCurrentUser && !timeout && !isExpired && isMessage && outgoingStatus !== "sent"
anchors.top: chatTime.top
anchors.bottomMargin: Style.current.padding
anchors.right: chatTime.left

View File

@ -4,7 +4,6 @@ import "../../../../../imports"
StyledText {
id: sentMessage
visible: isCurrentUser && !timeout && !isExpired && isMessage
color: Style.current.darkGrey
//% "Sending..."
text: qsTrId("sending")