diff --git a/src/app/components/ThreadItem.svelte b/src/app/components/ThreadItem.svelte index a39e1de1..eefaeb66 100644 --- a/src/app/components/ThreadItem.svelte +++ b/src/app/components/ThreadItem.svelte @@ -1,18 +1,29 @@ -
- +
+
- {#if replies.length > 0} - Show {replies.length} {replies.length === 1 ? "reply" : "replies"} - {/if} + + + {replies.length} +
diff --git a/src/routes/spaces/[nrelay]/+layout.svelte b/src/routes/spaces/[nrelay]/+layout.svelte index 109e7e8f..b5b7f913 100644 --- a/src/routes/spaces/[nrelay]/+layout.svelte +++ b/src/routes/spaces/[nrelay]/+layout.svelte @@ -2,7 +2,7 @@ import {onMount} from "svelte" import {page} from "$app/stores" import {sort, now} from "@welshman/lib" - import {displayRelayUrl, NOTE, EVENT_DATE, EVENT_TIME, CLASSIFIED} from "@welshman/util" + import {displayRelayUrl, REACTION, NOTE, EVENT_DATE, EVENT_TIME, CLASSIFIED} from "@welshman/util" import {subscribe} from "@welshman/app" import {fly, slide} from "@lib/transition" import Icon from "@lib/components/Icon.svelte" @@ -52,7 +52,7 @@ $: otherRooms = ($roomsByUrl.get(url) || []).filter(room => !rooms.concat(GENERAL).includes(room)) onMount(() => { - const kinds = [NOTE, MESSAGE, EVENT_DATE, EVENT_TIME, CLASSIFIED] + const kinds = [NOTE, REACTION, MESSAGE, EVENT_DATE, EVENT_TIME, CLASSIFIED] const sub = subscribe({filters: [{kinds}], relays: [url]}) return () => sub.close()