Add chat start dialog
This commit is contained in:
+3
-1
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user