fix: don't display unpin/jump items for a user

Fixes: #7853
This commit is contained in:
Lukáš Tinkl 2022-10-11 12:23:12 +02:00 committed by Iuri Matias
parent 7f944c09be
commit 6bf57d3bdd
1 changed files with 4 additions and 4 deletions

View File

@ -414,12 +414,12 @@ StatusPopupMenu {
} }
icon.name: "pin" icon.name: "pin"
enabled: { enabled: {
if (root.pinnedPopup)
return true
if(root.isProfile || root.isEmoji || root.isRightClickOnImage) if(root.isProfile || root.isEmoji || root.isRightClickOnImage)
return false return false
if (root.pinnedPopup)
return true
switch (root.chatType) { switch (root.chatType) {
case Constants.chatType.publicChat: case Constants.chatType.publicChat:
return false return false
@ -473,7 +473,7 @@ StatusPopupMenu {
StatusMenuItem { StatusMenuItem {
id: jumpToAction id: jumpToAction
enabled: root.pinnedPopup enabled: root.pinnedPopup && !root.isProfile
text: qsTr("Jump to") text: qsTr("Jump to")
onTriggered: { onTriggered: {
root.jumpToMessage(root.messageId) root.jumpToMessage(root.messageId)