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"
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)