fix: missing expired/timeout attributes in Resend button

This commit is contained in:
Richard Ramos 2021-11-18 12:18:37 -04:00
parent 0597fab1ac
commit c06c9dbc6d
3 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,8 @@ Item {
property int contentType: 2
property var container
property bool isCurrentUser: false
property bool isExpired: false
property bool timeout: false
property bool isHovered: typeof root.messageStore.hoveredMessage !== "undefined" && root.messageStore.hoveredMessage === messageId
property bool isMessageActive: typeof root.messageStore.activeMessage !== "undefined" && root.messageStore.activeMessage === messageId
property bool headerRepeatCondition: (authorCurrentMsg !== authorPrevMsg || shouldRepeatHeader || dateGroupLbl.visible || chatReply.active)
@ -596,6 +598,8 @@ Item {
anchors.topMargin: chatTime.visible ? 0 : -4
anchors.bottom: chatTime.visible ? chatTime.bottom : undefined
isCurrentUser: root.isCurrentUser
isExpired: root.isExpired
timeout: root.timeout
onClicked: {
root.store.chatsModelInst.messageView.resendMessage(chatId, messageId)
}

View File

@ -319,6 +319,8 @@ Column {
NormalMessageView {
linkUrls: root.linkUrls
isCurrentUser: root.isCurrentUser
isExpired: root.isExpired
timeout: root.timeout
contentType: root.contentType
container: root
store: root.rootStore
@ -359,6 +361,8 @@ Column {
CompactMessageView {
linkUrls: root.linkUrls
isCurrentUser: root.isCurrentUser
isExpired: root.isExpired
timeout: root.timeout
contentType: root.contentType
showEdit: root.showEdit
container: root

View File

@ -19,6 +19,8 @@ Item {
property var messageStore
property string linkUrls: ""
property bool isCurrentUser: false
property bool isExpired: false
property bool timeout: false
property int contentType: 2
property var container
property bool headerRepeatCondition: (authorCurrentMsg !== authorPrevMsg
@ -335,6 +337,8 @@ Item {
anchors.right: chatTime.left
anchors.rightMargin: 5
isCurrentUser: root.isCurrentUser
isExpired: root.isExpired
timeout: root.timeout
onClicked: {
root.store.chatsModelInst.messageView.resendMessage(chatId, messageId)
}