mirror of
https://github.com/fromchat-messenger/web.git
synced 2026-09-22 19:15:08 +03:00
Add Copy context menu action
This commit is contained in:
@@ -250,6 +250,15 @@ export function MessageContextMenu({
|
|||||||
},
|
},
|
||||||
show: isAuthor || user.currentUser?.id === 1
|
show: isAuthor || user.currentUser?.id === 1
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Copy",
|
||||||
|
icon: "content_copy",
|
||||||
|
onClick: () => {
|
||||||
|
navigator.clipboard.writeText(message.content);
|
||||||
|
handleClose();
|
||||||
|
},
|
||||||
|
show: true
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
// Quick reactions for the reaction bar
|
// Quick reactions for the reaction bar
|
||||||
|
|||||||
Reference in New Issue
Block a user