From 1076e8531c6181ade800d8955c34639cca990242 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 10 Feb 2026 17:04:21 -0800 Subject: [PATCH] Slightly tweak notifications function --- src/app/util/notifications.ts | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/app/util/notifications.ts b/src/app/util/notifications.ts index 8f4f6faa..1d26111f 100644 --- a/src/app/util/notifications.ts +++ b/src/app/util/notifications.ts @@ -345,14 +345,12 @@ class CapacitorNotifications implements IPushAdapter { String(hash(relay + key + device.get())) _getPushUrl = async (url: string) => { - let relay = await loadRelay(url) + for (const candidate of [url, PUSH_BRIDGE]) { + const relay = await loadRelay(candidate) - if (!relay?.self || !relay?.supported_nips?.map(String)?.includes("9a")) { - relay = await loadRelay(PUSH_BRIDGE) - } - - if (relay?.self) { - return relay.url + if (relay?.supported_nips?.map(String)?.includes("9a")) { + return candidate + } } }