mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-23 12:08:53 +00:00
feat(PinnedMessagesPopup): enable Unpin context menu entry
and remove the context actions we do not actually use Fixes: #7439
This commit is contained in:
parent
be5de27513
commit
58b56d831b
@ -136,24 +136,12 @@ StatusDialog {
|
||||
root.close()
|
||||
}
|
||||
|
||||
onPinMessage: {
|
||||
root.messageStore.pinMessage(messageId)
|
||||
}
|
||||
|
||||
onUnpinMessage: {
|
||||
root.messageStore.unpinMessage(messageId)
|
||||
}
|
||||
|
||||
onToggleReaction: {
|
||||
root.messageStore.toggleReaction(messageId, emojiId)
|
||||
}
|
||||
|
||||
onOpenProfileClicked: {
|
||||
Global.openProfilePopup(publicKey, null, state)
|
||||
root.messagesModule.unpinMessage(messageId)
|
||||
}
|
||||
|
||||
onJumpToMessage: {
|
||||
root.messagesModule.jumpToMessage(messageId);
|
||||
root.messagesModule.jumpToMessage(messageId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -410,6 +410,9 @@ StatusPopupMenu {
|
||||
}
|
||||
icon.name: "pin"
|
||||
enabled: {
|
||||
if (root.pinnedPopup)
|
||||
return true
|
||||
|
||||
if(root.isProfile || root.isEmoji || root.isRightClickOnImage)
|
||||
return false
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user