Small bugs/copy changes

This commit is contained in:
Jon Staab
2025-02-04 14:21:21 -08:00
parent 22cbb9fe1c
commit e53d2eb8da
2 changed files with 17 additions and 4 deletions

View File

@@ -37,8 +37,6 @@
const assertEvent = (e: any) => e as TrustedEvent
const assertNotNil = <T,>(x: T | undefined) => x!
const showMembers = () =>
pushModal(ProfileList, {pubkeys: others, title: `People in this conversation`})
@@ -158,7 +156,7 @@
</PageBar>
{/if}
<div class="-mt-2 flex flex-grow flex-col-reverse overflow-auto py-2">
{#if missingInboxes.includes(assertNotNil($pubkey))}
{#if missingInboxes.includes($pubkey!)}
<div class="py-12">
<div class="card2 col-2 m-auto max-w-md items-center text-center">
<p class="row-2 text-lg text-error">
@@ -172,6 +170,19 @@
</p>
</div>
</div>
{:else if missingInboxes.length > 0}
<div class="py-12">
<div class="card2 col-2 m-auto max-w-md items-center text-center">
<p class="row-2 text-lg text-error">
<Icon icon="danger" />
{missingInboxes.length} {missingInboxes.length > 1 ? 'inboxes are' : 'inbox is'} not configured.
</p>
<p>
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.
</p>
</div>
</div>
{/if}
{#each elements as { type, id, value, showPubkey } (id)}
{#if type === "date"}

View File

@@ -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) {