Add 'delete for me' action
This commit is contained in:
parent
9eb09e4aab
commit
01c40eb42d
1 changed files with 1 additions and 1 deletions
|
@ -246,7 +246,7 @@ const ChatMessageList: React.FC<IChatMessageList> = ({ chat, autosize }) => {
|
|||
});
|
||||
menu.push({
|
||||
text: intl.formatMessage(messages.deleteForMe),
|
||||
action: () => null, // TODO: implement once API is available
|
||||
action: () => handleDeleteMessage.mutate(chatMessage.id),
|
||||
icon: require('@tabler/icons/trash.svg'),
|
||||
destructive: true,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue