From 6bf57d3bdd02017627939887d46ac5aafcbf46df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Tue, 11 Oct 2022 12:23:12 +0200 Subject: [PATCH] fix: don't display unpin/jump items for a user Fixes: #7853 --- ui/imports/shared/views/chat/MessageContextMenuView.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/imports/shared/views/chat/MessageContextMenuView.qml b/ui/imports/shared/views/chat/MessageContextMenuView.qml index f8a6448e1e..aacb4e874f 100644 --- a/ui/imports/shared/views/chat/MessageContextMenuView.qml +++ b/ui/imports/shared/views/chat/MessageContextMenuView.qml @@ -414,12 +414,12 @@ StatusPopupMenu { } icon.name: "pin" enabled: { - if (root.pinnedPopup) - return true - if(root.isProfile || root.isEmoji || root.isRightClickOnImage) return false + if (root.pinnedPopup) + return true + switch (root.chatType) { case Constants.chatType.publicChat: return false @@ -473,7 +473,7 @@ StatusPopupMenu { StatusMenuItem { id: jumpToAction - enabled: root.pinnedPopup + enabled: root.pinnedPopup && !root.isProfile text: qsTr("Jump to") onTriggered: { root.jumpToMessage(root.messageId)