diff --git a/lib/facts/links.js b/lib/facts/links.js new file mode 100644 --- /dev/null +++ b/lib/facts/links.js @@ -0,0 +1,7 @@ +// @flow + +function inviteLinkUrl(secret: string): string { + return `https://comm.app/invite/${secret}`; +} + +export { inviteLinkUrl }; diff --git a/native/invite-links/manage-public-link-screen.react.js b/native/invite-links/manage-public-link-screen.react.js --- a/native/invite-links/manage-public-link-screen.react.js +++ b/native/invite-links/manage-public-link-screen.react.js @@ -9,6 +9,7 @@ disableInviteLink as callDisableInviteLink, disableInviteLinkLinkActionTypes, } from 'lib/actions/link-actions.js'; +import { inviteLinkUrl } from 'lib/facts/links.js'; import { primaryInviteLinksSelector } from 'lib/selectors/invite-links-selectors.js'; import { createLoadingStatusSelector } from 'lib/selectors/loading-selectors.js'; import type { ThreadInfo } from 'lib/types/thread-types.js'; @@ -147,7 +148,7 @@ INVITE URL - https://comm.app/invite/ + {inviteLinkUrl('')} { Clipboard.setString(linkUrl); setTimeout(confirmCopy);