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"
checked: true
onCheckedChanged: {
pinnedMessagesPopup.isPinActionAvaliable = checked
pinnedMessagesPopup.isPinActionAvailable = checked
}
}

View File

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

View File

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