diff --git a/web/invite-links/view-invite-link-modal.react.js b/web/invite-links/view-invite-link-modal.react.js --- a/web/invite-links/view-invite-link-modal.react.js +++ b/web/invite-links/view-invite-link-modal.react.js @@ -26,6 +26,11 @@ const resolvedThreadInfo = useResolvedThreadInfo(threadInfo); const { popModal } = useModalContext(); + const url = inviteLinkUrl(inviteLink.name); + const copyLink = React.useCallback(() => { + navigator.clipboard.writeText(url); + }, [url]); + return (
Public link
-
{inviteLinkUrl(inviteLink.name)}
-