diff --git a/src/lib/components/ChatContent.svelte b/src/lib/components/ChatContent.svelte index 3e0098d..50c286b 100644 --- a/src/lib/components/ChatContent.svelte +++ b/src/lib/components/ChatContent.svelte @@ -1,6 +1,7 @@ + + + +{#snippet postList(items: UserPost[], empty: string)} + {#if items.length === 0} +
{empty}
+ {:else} ++ {p.title} +
+ {/if} + {#if text} ++ {text} +
+ {/if} + ++ Profile not found. +
+ {:else} ++ {entry.nip05} +
+ {/if} + + {#if entry?.about} ++ {entry.about} +
+ {/if} + ++ Loading… +
+ {:else} + {@render postList(posts.roots, "No discussions yet.")} + {/if} ++ Loading… +
+ {:else} + {@render postList(posts.replies, "No replies yet.")} + {/if} +