diff --git a/.env.example b/.env.example index 570c9e7..ba17862 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,6 @@ PUBLIC_RELAY_URL=ws://localhost:3334 # required — NIP-29 relay hosting the g PUBLIC_MODE=simple # simple | full (single forum vs. many rooms) PUBLIC_GROUP_ID=mygrouprandomid # required in simple mode; the single forum's group id (ignored in full mode) PUBLIC_TITLE= # top-bar title; empty falls back to the group name -PUBLIC_JOINCODE=no # yes | no — show an invite-code field when a join is rejected PUBLIC_SEARCH=no # yes | no — enable the search box (requires a relay with NIP-50 support) PUBLIC_LABELS= # comma-separated discussion labels (e.g., bug,feature,question) PUBLIC_BLOSSOM_URL= # Blossom server URL for uploads (e.g., https://blossom.primal.net) diff --git a/src/lib/components/ChatSidebar.svelte b/src/lib/components/ChatSidebar.svelte index 6551b79..8d65181 100644 --- a/src/lib/components/ChatSidebar.svelte +++ b/src/lib/components/ChatSidebar.svelte @@ -15,9 +15,9 @@ } from "$lib/moderation.svelte"; import { withJoin, + joinState, membershipOf, ensureMembershipChecked, - openJoinModal, } from "$lib/join.svelte"; import { activeGroup } from "$lib/active.svelte"; import type { NostrUser } from "@nostr/gadgets/metadata"; @@ -76,7 +76,7 @@ }); function onJoinToChat() { - openJoinModal(activeGroup.id, () => tick().then(() => inputEl?.focus())); + withJoin(activeGroup.id, () => tick().then(() => inputEl?.focus())); } function requestDeleteMessage(msg: ChatMessageData) { @@ -486,9 +486,10 @@ {:else if joinToChat} {:else}