lint/format

This commit is contained in:
Jon Staab
2024-10-10 17:15:20 -07:00
parent 597ebddf82
commit 46965f5945
12 changed files with 60 additions and 52 deletions

View File

@@ -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