From 341c1b45b2f270e0402070b19a76de04e38050cb Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 5 May 2026 09:09:28 -0700 Subject: [PATCH] Stop publishing join requests every time we open a space --- src/app/core/commands.ts | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/src/app/core/commands.ts b/src/app/core/commands.ts index 357f11db0..d5439d13b 100644 --- a/src/app/core/commands.ts +++ b/src/app/core/commands.ts @@ -73,7 +73,6 @@ import { waitForThunkError, getPubkeyRelays, userBlossomServerList, - getThunkError, addRoomMember, manageRelay, getRelay, @@ -264,16 +263,12 @@ export const attemptRelayAccess = async (url: string, claim = "") => { return stripPrefix(error) } -export const deriveRelayAuthError = (url: string, claim = "") => { - // Kick off the auth process +export const deriveRelayAuthError = (url: string) => { Pool.get().get(url).auth.attemptAuth(sign) - // Attempt to join the relay - const thunk = publishJoinRequest({url, claim}) - return derived( - [thunk, relaysMostlyRestricted, deriveSocket(url)], - ([$thunk, $relaysMostlyRestricted, $socket]) => { + [relaysMostlyRestricted, deriveSocket(url)], + ([$relaysMostlyRestricted, $socket]) => { if ($socket.auth.status === AuthStatus.Forbidden && $socket.auth.details) { return stripPrefix($socket.auth.details) } @@ -281,16 +276,6 @@ export const deriveRelayAuthError = (url: string, claim = "") => { if ($relaysMostlyRestricted[url]) { return stripPrefix($relaysMostlyRestricted[url]) } - - const error = getThunkError($thunk) - - if (error) { - const isEmptyInvite = !claim && error.includes("invite code") - - if (!shouldIgnoreError(error) && !isEmptyInvite) { - return stripPrefix(error) || "join request rejected" - } - } }, ) }