From 2f9010cd1303769f068a779567f274e45bbe70d4 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 12 May 2025 09:01:13 -0700 Subject: [PATCH] Ignore unnecessary error --- CHANGELOG.md | 1 + src/app/commands.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6deb7af..fc904ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Add light theme * Use correct alerts server +* Ignore relay errors for claims # 1.0.2 diff --git a/src/app/commands.ts b/src/app/commands.ts index 459d5c5..d4c8df2 100644 --- a/src/app/commands.ts +++ b/src/app/commands.ts @@ -276,9 +276,12 @@ export const checkRelayAccess = async (url: string, claim = "") => { // If it's a strict NIP 29 relay don't worry about requesting access // TODO: remove this if relay29 ever gets less strict - if (message !== "missing group (`h`) tag") { - return message - } + if (message === "missing group (`h`) tag") return + + // Ignore messages about the relay ignoring ours + if (error?.startsWith("mute: ")) return + + return message } }