From e53d2eb8dadffa536e30d0cd6313a16882c53e83 Mon Sep 17 00:00:00 2001 From: Jon Staab Date: Tue, 4 Feb 2025 14:21:21 -0800 Subject: [PATCH] Small bugs/copy changes --- src/app/components/Chat.svelte | 17 ++++++++++++++--- src/app/components/SpaceCheck.svelte | 4 +++- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/src/app/components/Chat.svelte b/src/app/components/Chat.svelte index 373532f5..ff4fc51e 100644 --- a/src/app/components/Chat.svelte +++ b/src/app/components/Chat.svelte @@ -37,8 +37,6 @@ const assertEvent = (e: any) => e as TrustedEvent - const assertNotNil = (x: T | undefined) => x! - const showMembers = () => pushModal(ProfileList, {pubkeys: others, title: `People in this conversation`}) @@ -158,7 +156,7 @@ {/if}
- {#if missingInboxes.includes(assertNotNil($pubkey))} + {#if missingInboxes.includes($pubkey!)}

@@ -172,6 +170,19 @@

+ {:else if missingInboxes.length > 0} +
+
+

+ + {missingInboxes.length} {missingInboxes.length > 1 ? 'inboxes are' : 'inbox is'} not configured. +

+

+ In order to deliver messages, {PLATFORM_NAME} needs to know where to send them. Please make + sure everyone in this conversation has set up their inbox relays. +

+
+
{/if} {#each elements as { type, id, value, showPubkey } (id)} {#if type === "date"} diff --git a/src/app/components/SpaceCheck.svelte b/src/app/components/SpaceCheck.svelte index 592a24bc..06ff7750 100644 --- a/src/app/components/SpaceCheck.svelte +++ b/src/app/components/SpaceCheck.svelte @@ -16,9 +16,11 @@ const {url} = $props() + const path = makeSpacePath(url) + const back = () => history.back() - const confirm = () => goto(makeSpacePath(url), {replaceState: true}) + const confirm = () => goto(path, {replaceState: true}) const next = () => { if (!error && ctx.net.pool.get(url).stats.lastAuth === 0) {