This commit is contained in:
Iuri Matias 2024-10-04 11:03:23 -04:00
parent 985f4820bb
commit e73bcb5b25
3 changed files with 4 additions and 4 deletions

View File

@ -274,7 +274,7 @@ SplitView {
text: "Is Pin Action Available" text: "Is Pin Action Available"
checked: true checked: true
onCheckedChanged: { onCheckedChanged: {
pinnedMessagesPopup.isPinActionAvaliable = checked pinnedMessagesPopup.isPinActionAvailable = checked
} }
} }

View File

@ -25,7 +25,7 @@ StatusDialog {
property string messageToUnpin property string messageToUnpin
property string chatId property string chatId
readonly property bool isPinActionAvaliable: true readonly property bool isPinActionAvailable: true
signal pinMessageRequested(string messageId) signal pinMessageRequested(string messageId)
signal unpinMessageRequested(string messageId) signal unpinMessageRequested(string messageId)
@ -165,7 +165,7 @@ StatusDialog {
z: mouseArea.z + 1 z: mouseArea.z + 1
width: 32 width: 32
height: 32 height: 32
visible: root.isPinActionAvaliable && !root.messageToPin && (hovered || mouseArea.containsMouse) visible: root.isPinActionAvailable && !root.messageToPin && (hovered || mouseArea.containsMouse)
icon.name: "unpin" icon.name: "unpin"
tooltip.text: qsTr("Unpin") tooltip.text: qsTr("Unpin")
color: hovered ? Theme.palette.primaryColor2 : Theme.palette.indirectColor1 color: hovered ? Theme.palette.primaryColor2 : Theme.palette.indirectColor1

View File

@ -265,7 +265,7 @@ QtObject {
pinnedMessagesModel: pinnedMessagesModel, pinnedMessagesModel: pinnedMessagesModel,
messageToPin: messageToPin, messageToPin: messageToPin,
chatId: chatId, chatId: chatId,
isPinActionAvaliable: store && store.oneToOneChatContact ? store.oneToOneChatContact.isContact : true isPinActionAvailable: store && store.oneToOneChatContact ? store.oneToOneChatContact.isContact : true
}) })
} }