Add 'delete for me' action

This commit is contained in:
Chewbacca 2022-10-25 10:13:08 -04:00
parent 9eb09e4aab
commit 01c40eb42d

View file

@ -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,
});