diff --git a/src/routes/(app)/ChatListItem.svelte b/src/routes/(app)/ChatListItem.svelte index f97c991..544c5b5 100644 --- a/src/routes/(app)/ChatListItem.svelte +++ b/src/routes/(app)/ChatListItem.svelte @@ -5,6 +5,8 @@ import type { Chat } from '$lib/types'; import { currentKeyPair } from '$lib/keystore'; import { blahRichTextToPlainText } from '$lib/richText'; + import { page } from '$app/stores'; + import { tw } from '$lib/tw'; export let chat: Chat; @@ -13,10 +15,15 @@ const url = new URL(chat.server); urlSafeEndpoint = encodeURIComponent(url.hostname + url.pathname); } + + $: isSelected = $page.params.chatId === chat.id;