Implement a minimal chat system for the sidebar
This commit is contained in:
parent
e94764b865
commit
83c366d75b
3 changed files with 383 additions and 70 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue