Add users mention with search and autocomplete
This commit is contained in:
parent
1ff1c225c5
commit
be7c5a38ba
6 changed files with 656 additions and 12 deletions
|
|
@ -9,8 +9,9 @@
|
|||
import NewDiscussionModal from "$lib/components/NewDiscussionModal.svelte";
|
||||
import { page } from "$app/state";
|
||||
import { onMount } from "svelte";
|
||||
import { restoreSession } from "$lib/auth.svelte";
|
||||
import { auth, restoreSession } from "$lib/auth.svelte";
|
||||
import { loadGroup } from "$lib/group.svelte";
|
||||
import { seedProfiles } from "$lib/profiles.svelte";
|
||||
import { MODE } from "$lib/config";
|
||||
|
||||
let { children } = $props();
|
||||
|
|
@ -18,9 +19,9 @@
|
|||
const mode = MODE;
|
||||
const chatEnabled = true;
|
||||
|
||||
onMount(() => {
|
||||
restoreSession();
|
||||
loadGroup();
|
||||
onMount(async () => {
|
||||
await Promise.all([restoreSession(), loadGroup()]);
|
||||
seedProfiles(auth.user?.pubkey ?? null);
|
||||
});
|
||||
|
||||
let chatExpanded = $state(false);
|
||||
|
|
|
|||
|
|
@ -198,6 +198,7 @@
|
|||
disabled={replying}
|
||||
rows={4}
|
||||
placeholder="Write a reply..."
|
||||
contextPubkeys={allPosts.map((p) => p.pubkey)}
|
||||
/>
|
||||
<div class="mt-2 flex justify-end">
|
||||
<button
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue