Implement a minimal chat system for the sidebar

This commit is contained in:
dtonon 2026-04-28 10:14:59 +01:00
parent e94764b865
commit 83c366d75b
3 changed files with 383 additions and 70 deletions

View file

@ -12,6 +12,7 @@
import { auth, restoreSession } from "$lib/auth.svelte";
import { loadGroup } from "$lib/group.svelte";
import { seedProfiles } from "$lib/profiles.svelte";
import { startChat } from "$lib/chat.svelte";
import { MODE } from "$lib/config";
let { children } = $props();
@ -22,6 +23,7 @@
onMount(async () => {
await Promise.all([restoreSession(), loadGroup()]);
seedProfiles(auth.user?.pubkey ?? null);
if (chatEnabled) startChat();
});
let chatExpanded = $state(false);