From 2fae3ca248a4393c5c139a664922b9171bafb1ee Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 16 Jun 2025 16:56:59 -0700 Subject: [PATCH] Fix broadcasting user profiles when protected --- src/app/commands.ts | 5 +++++ src/app/components/ProfileEdit.svelte | 15 +++++++-------- src/app/components/SpaceJoin.svelte | 3 ++- src/app/components/SpaceJoinConfirm.svelte | 17 +++++++++++++++-- src/routes/+layout.svelte | 2 ++ 5 files changed, 31 insertions(+), 11 deletions(-) diff --git a/src/app/commands.ts b/src/app/commands.ts index ed56bf5..f69e741 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -233,6 +233,11 @@ export const checkRelayAccess = async (url: string, claim = "") => { // Ignore messages about the relay ignoring ours if (error?.startsWith("mute: ")) return + // Ignore rejected empty claims + if (!claim && error?.includes("invite code")) { + return `failed to request access to relay` + } + return message } } diff --git a/src/app/components/ProfileEdit.svelte b/src/app/components/ProfileEdit.svelte index b18c8c8..b3a2af3 100644 --- a/src/app/components/ProfileEdit.svelte +++ b/src/app/components/ProfileEdit.svelte @@ -1,5 +1,5 @@