Files
flotilla/src/routes/chat/[chat]/+page.svelte
T
2026-02-09 11:44:32 -08:00

14 lines
447 B
Svelte

<script lang="ts">
import {page} from "$app/stores"
import type {MakeNonOptional} from "@welshman/lib"
import {append, uniq} from "@welshman/lib"
import {pubkey} from "@welshman/app"
import Chat from "@app/components/Chat.svelte"
import {splitChatId} from "@app/core/state"
const {chat} = $page.params as MakeNonOptional<typeof $page.params>
const pubkeys = uniq(append($pubkey!, splitChatId(chat)))
</script>
<Chat {pubkeys} />