From b716f3f792a1bbdb1f65922e7d1320f6eceff1ca Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Mon, 23 Mar 2026 12:53:24 -0700 Subject: [PATCH] Improve dm relay defaults and warnings --- src/app/components/Chat.svelte | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) diff --git a/src/app/components/Chat.svelte b/src/app/components/Chat.svelte index 97c76f93..f9e51a80 100644 --- a/src/app/components/Chat.svelte +++ b/src/app/components/Chat.svelte @@ -65,7 +65,7 @@ const chat = deriveChat(pubkeys) const others = remove($pubkey!, pubkeys) - const missingRelayLists = $derived(pubkeys.filter(pk => !$messagingRelayListsByPubkey.has(pk))) + const missingRelayLists = $derived(others.filter(pk => !$messagingRelayListsByPubkey.has(pk))) const showMembers = () => others.length === 1 @@ -279,35 +279,12 @@ {/if} - {#if remove($pubkey, missingRelayLists).length > 0} - {@const count = remove($pubkey, missingRelayLists).length} - {@const label = count > 1 ? "lists are" : "list is"} -
- - {count} -
- {/if}
- {#if missingRelayLists.includes($pubkey!)} -
-
-

- - Your messaging relays are not configured. -

-

- In order to deliver messages, {PLATFORM_NAME} needs to know where to send them. Please visit - your relay settings page to receive messages. -

-
-
- {:else if missingRelayLists.length > 0} + {#if missingRelayLists.length > 0}