diff --git a/src/app/components/ChatStart.svelte b/src/app/components/ChatStart.svelte
new file mode 100644
index 00000000..dd2d99ee
--- /dev/null
+++ b/src/app/components/ChatStart.svelte
@@ -0,0 +1,41 @@
+
+
+
diff --git a/src/app/components/ProfileMultiSelect.svelte b/src/app/components/ProfileMultiSelect.svelte
new file mode 100644
index 00000000..4db08796
--- /dev/null
+++ b/src/app/components/ProfileMultiSelect.svelte
@@ -0,0 +1,88 @@
+
+
+
+
+ {#each value as pubkey (pubkey)}
+
+
+
+
+
+
+ {/each}
+
+
+
input.getBoundingClientRect(),
+ }}
+ />
+
diff --git a/src/app/routes.ts b/src/app/routes.ts
index e6d70bd5..0067830d 100644
--- a/src/app/routes.ts
+++ b/src/app/routes.ts
@@ -1,6 +1,6 @@
import {nip19} from "nostr-tools"
import type {Page} from "@sveltejs/kit"
-import {userMembership, decodeNRelay} from "@app/state"
+import {userMembership, makeChatId, decodeNRelay} from "@app/state"
export const makeSpacePath = (url: string, extra = "") => {
let path = `/spaces/${nip19.nrelayEncode(url)}`
@@ -12,6 +12,8 @@ export const makeSpacePath = (url: string, extra = "") => {
return path
}
+export const makeChatPath = (pubkeys: string[]) => `/home/${makeChatId(pubkeys)}`
+
export const getPrimaryNavItem = ($page: Page) => $page.route?.id?.split("/")[1]
export const getPrimaryNavItemIndex = ($page: Page) => {
diff --git a/src/app/state.ts b/src/app/state.ts
index a3e583df..b0322f5e 100644
--- a/src/app/state.ts
+++ b/src/app/state.ts
@@ -223,7 +223,7 @@ export const {
},
})
-// Encrypted Chats
+// Chats
export const chatMessages = deriveEvents(repository, {filters: [{kinds: [DIRECT_MESSAGE]}]})
diff --git a/src/lib/components/ModalBox.svelte b/src/lib/components/ModalBox.svelte
index f04592a6..42649767 100644
--- a/src/lib/components/ModalBox.svelte
+++ b/src/lib/components/ModalBox.svelte
@@ -5,6 +5,6 @@
export let props = {}
-
+
diff --git a/src/lib/editor/Suggestions.svelte b/src/lib/editor/Suggestions.svelte
index 23694ac8..125c0ea2 100644
--- a/src/lib/editor/Suggestions.svelte
+++ b/src/lib/editor/Suggestions.svelte
@@ -60,12 +60,12 @@
}
-{#if items.length > 0 || (term && allowCreate)}
+{#if term}
{#if term && allowCreate}