Skip to content

Commit

Permalink
Add unsave menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
nicodh committed Feb 28, 2025
1 parent 2c9fb13 commit e23c7c9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/frontend/src/components/message/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,16 @@ function buildContextMenu(
action: () =>
BackendRemote.rpc.saveMsgs(selectedAccountId(), [message.id]),
},
isSavedMessage && {
label: tx('unsave'),
action: () => {
if (message.savedMessageId !== null) {
BackendRemote.rpc.deleteMessages(selectedAccountId(), [
message.savedMessageId,
])
}
},
},
// copy link
link !== '' &&
isLink && {
Expand Down

0 comments on commit e23c7c9

Please sign in to comment.