diff --git a/src/app/commands.ts b/src/app/commands.ts index 11dff46fd..dc63d342c 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -198,7 +198,7 @@ export const checkRelayAccess = async (url: string, claim = "") => { }) if (result[url].status !== PublishStatus.Success) { - const message = result[url].message?.replace(/^.*: /, '') || "join request rejected" + const message = result[url].message?.replace(/^.*: /, "") || "join request rejected" return `Failed to join relay: ${message}` } @@ -233,10 +233,10 @@ export const checkRelayAuth = async (url: string) => { } export const attemptRelayAccess = async (url: string, claim = "") => - await checkRelayProfile(url) || - await checkRelayConnection(url) || - await checkRelayAccess(url, claim) || - await checkRelayAuth(url) + (await checkRelayProfile(url)) || + (await checkRelayConnection(url)) || + (await checkRelayAccess(url, claim)) || + (await checkRelayAuth(url)) // Actions diff --git a/src/app/components/PeopleItem.svelte b/src/app/components/PeopleItem.svelte index 6493df9f5..4b6b614db 100644 --- a/src/app/components/PeopleItem.svelte +++ b/src/app/components/PeopleItem.svelte @@ -48,7 +48,7 @@ {@const following = getPubkeyTagValues(getListTags($userFollows)).includes(pubkey)}