feat(PinnedMessagesPopup): enable Unpin context menu entry

and remove the context actions we do not actually use

Fixes: #7439
This commit is contained in:
Lukáš Tinkl 2022-09-20 11:39:18 +02:00 committed by Lukáš Tinkl
parent be5de27513
commit 58b56d831b
2 changed files with 5 additions and 14 deletions

View File

@ -136,24 +136,12 @@ StatusDialog {
root.close() root.close()
} }
onPinMessage: {
root.messageStore.pinMessage(messageId)
}
onUnpinMessage: { onUnpinMessage: {
root.messageStore.unpinMessage(messageId) root.messagesModule.unpinMessage(messageId)
}
onToggleReaction: {
root.messageStore.toggleReaction(messageId, emojiId)
}
onOpenProfileClicked: {
Global.openProfilePopup(publicKey, null, state)
} }
onJumpToMessage: { onJumpToMessage: {
root.messagesModule.jumpToMessage(messageId); root.messagesModule.jumpToMessage(messageId)
} }
} }
} }

View File

@ -410,6 +410,9 @@ 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