diff --git a/keyserver/src/responders/website-responders.js b/keyserver/src/responders/website-responders.js
--- a/keyserver/src/responders/website-responders.js
+++ b/keyserver/src/responders/website-responders.js
@@ -12,7 +12,7 @@
import t from 'tcomb';
import { promisify } from 'util';
-import { inviteLinkUrl } from 'lib/facts/links.js';
+import { inviteLinkURL } from 'lib/facts/links.js';
import { baseLegalPolicies } from 'lib/facts/policies.js';
import stores from 'lib/facts/stores.js';
import { daysToEntriesFromEntryInfos } from 'lib/reducers/entry-reducer.js';
@@ -804,7 +804,7 @@
diff --git a/lib/facts/links.js b/lib/facts/links.js
--- a/lib/facts/links.js
+++ b/lib/facts/links.js
@@ -1,12 +1,12 @@
// @flow
/* Invite Links */
-function inviteLinkUrl(secret: string): string {
+function inviteLinkURL(secret: string): string {
return `https://comm.app/invite/${secret}`;
}
/* QR Code */
-function qrCodeLinkUrl(aes256Param: string, ed25519Param: string): string {
+function qrCodeLinkURL(aes256Param: string, ed25519Param: string): string {
const keys = {
aes256: aes256Param,
ed25519: ed25519Param,
@@ -56,8 +56,8 @@
}
export {
- inviteLinkUrl,
- qrCodeLinkUrl,
+ inviteLinkURL,
+ qrCodeLinkURL,
parseInstallReferrerFromInviteLinkURL,
parseDataFromDeepLink,
};
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
@@ -3,7 +3,7 @@
import * as React from 'react';
import { Text, View } from 'react-native';
-import { inviteLinkUrl } from 'lib/facts/links.js';
+import { inviteLinkURL } from 'lib/facts/links.js';
import { useInviteLinksActions } from 'lib/hooks/invite-links.js';
import { primaryInviteLinksSelector } from 'lib/selectors/invite-links-selectors.js';
import {
@@ -107,7 +107,7 @@
INVITE URL
- {inviteLinkUrl('')}
+ {inviteLinkURL('')}
{
Clipboard.setString(linkUrl);
setTimeout(confirmCopy);
diff --git a/native/markdown/markdown-link.react.js b/native/markdown/markdown-link.react.js
--- a/native/markdown/markdown-link.react.js
+++ b/native/markdown/markdown-link.react.js
@@ -4,7 +4,7 @@
import * as React from 'react';
import { Text, Linking } from 'react-native';
-import { inviteLinkUrl } from 'lib/facts/links.js';
+import { inviteLinkURL } from 'lib/facts/links.js';
import {
MarkdownContext,
@@ -40,7 +40,7 @@
const deepLinksContext = React.useContext(DeepLinksContext);
return React.useCallback(() => {
- if (url.startsWith(inviteLinkUrl(''))) {
+ if (url.startsWith(inviteLinkURL(''))) {
deepLinksContext?.setCurrentLinkUrl(url);
return;
}
diff --git a/native/qr-code/qr-code-screen.react.js b/native/qr-code/qr-code-screen.react.js
--- a/native/qr-code/qr-code-screen.react.js
+++ b/native/qr-code/qr-code-screen.react.js
@@ -4,7 +4,7 @@
import { View, Text } from 'react-native';
import QRCode from 'react-native-qrcode-svg';
-import { qrCodeLinkUrl } from 'lib/facts/links.js';
+import { qrCodeLinkURL } from 'lib/facts/links.js';
import type { QRCodeSignInNavigationProp } from './qr-code-sign-in-navigator.react.js';
import type { NavigationRoute } from '../navigation/route-names.js';
@@ -15,7 +15,7 @@
+route: NavigationRoute<'QRCodeScreen'>,
};
-const qrCodeValue = qrCodeLinkUrl('random_aes256_key', 'device_ed25519_key');
+const qrCodeValue = qrCodeLinkURL('random_aes256_key', 'device_ed25519_key');
// eslint-disable-next-line no-unused-vars
function QRCodeScreen(props: QRCodeScreenProps): React.Node {
diff --git a/web/account/qr-code-login.react.js b/web/account/qr-code-login.react.js
--- a/web/account/qr-code-login.react.js
+++ b/web/account/qr-code-login.react.js
@@ -3,11 +3,11 @@
import { QRCodeSVG } from 'qrcode.react';
import * as React from 'react';
-import { qrCodeLinkUrl } from 'lib/facts/links.js';
+import { qrCodeLinkURL } from 'lib/facts/links.js';
import css from './qr-code-login.css';
-const qrCodeValue = qrCodeLinkUrl('random_aes256_key', 'device_ed25519_key');
+const qrCodeValue = qrCodeLinkURL('random_aes256_key', 'device_ed25519_key');
function QrCodeLogin(): React.Node {
return (
diff --git a/web/invite-links/copy-invite-link-button.react.js b/web/invite-links/copy-invite-link-button.react.js
--- a/web/invite-links/copy-invite-link-button.react.js
+++ b/web/invite-links/copy-invite-link-button.react.js
@@ -3,7 +3,7 @@
import * as React from 'react';
import SWMansionIcon from 'lib/components/SWMansionIcon.react.js';
-import { inviteLinkUrl } from 'lib/facts/links.js';
+import { inviteLinkURL } from 'lib/facts/links.js';
import { useResettingState } from 'lib/hooks/use-resetting-state.js';
import type { InviteLink } from 'lib/types/link-types.js';
@@ -17,7 +17,7 @@
const copiedMessageDurationMs = 2000;
function CopyInviteLinkButton(props: Props): React.Node {
const { inviteLink } = props;
- const url = inviteLinkUrl(inviteLink.name);
+ const url = inviteLinkURL(inviteLink.name);
const [copied, setCopied] = useResettingState(false, copiedMessageDurationMs);
const copyLink = React.useCallback(async () => {
try {
diff --git a/web/invite-links/manage/edit-link-modal.react.js b/web/invite-links/manage/edit-link-modal.react.js
--- a/web/invite-links/manage/edit-link-modal.react.js
+++ b/web/invite-links/manage/edit-link-modal.react.js
@@ -4,7 +4,7 @@
import * as React from 'react';
import { useModalContext } from 'lib/components/modal-provider.react.js';
-import { inviteLinkUrl } from 'lib/facts/links.js';
+import { inviteLinkURL } from 'lib/facts/links.js';
import { useInviteLinksActions } from 'lib/hooks/invite-links.js';
import {
defaultErrorMessage,
@@ -88,7 +88,7 @@
Invite URL
- {inviteLinkUrl('')}
+ {inviteLinkURL('')}
{errorComponent}