Make join rejections due to an empty claim more forgiving
This commit is contained in:
parent
f633612207
commit
879ba5c37f
1 changed files with 8 additions and 2 deletions
|
|
@ -257,8 +257,14 @@ export const attemptRelayAccess = async (url: string, claim = "") => {
|
|||
const error = await waitForThunkError(publishJoinRequest({url, claim}))
|
||||
|
||||
if (shouldIgnoreError(error)) return
|
||||
if (!claim && error.includes("invite code size")) return
|
||||
if (error.includes("invite code")) return "join request rejected"
|
||||
|
||||
if (claim) {
|
||||
if (error.includes("invite code")) {
|
||||
return "join request rejected"
|
||||
}
|
||||
} else if (error.includes("invite code")) {
|
||||
return
|
||||
}
|
||||
|
||||
return stripPrefix(error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue