diff --git a/storybook/pages/PinnedMessagesPopupPage.qml b/storybook/pages/PinnedMessagesPopupPage.qml index 8f7835a3f6..a71204ef21 100644 --- a/storybook/pages/PinnedMessagesPopupPage.qml +++ b/storybook/pages/PinnedMessagesPopupPage.qml @@ -274,7 +274,7 @@ SplitView { text: "Is Pin Action Available" checked: true onCheckedChanged: { - pinnedMessagesPopup.isPinActionAvaliable = checked + pinnedMessagesPopup.isPinActionAvailable = checked } } diff --git a/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml b/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml index 32b7154bd4..40443715a9 100644 --- a/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml @@ -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 diff --git a/ui/app/mainui/Popups.qml b/ui/app/mainui/Popups.qml index 9ec3e967b8..aed15577a3 100644 --- a/ui/app/mainui/Popups.qml +++ b/ui/app/mainui/Popups.qml @@ -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 }) }