From 879ba5c37fdb8bdc3a3cdc9fbcc0e1e0da70e102 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Fri, 5 Jun 2026 17:15:41 -0700 Subject: [PATCH] Make join rejections due to an empty claim more forgiving --- src/app/core/commands.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/app/core/commands.ts b/src/app/core/commands.ts index d5439d13..e20d92a1 100644 --- a/src/app/core/commands.ts +++ b/src/app/core/commands.ts @@ -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) }