Fix space notifications

This commit is contained in:
Jon Staab
2024-12-16 10:30:42 -08:00
parent 9f3bfd5ac0
commit 85e5413951
6 changed files with 59 additions and 24 deletions
+9 -2
View File
@@ -15,8 +15,15 @@ export const makeChatPath = (pubkeys: string[]) => `/chat/${makeChatId(pubkeys)}
export const makeRoomPath = (url: string, room: string) => `/spaces/${encodeRelay(url)}/${room}`
export const makeThreadPath = (url: string, eventId: string) =>
`/spaces/${encodeRelay(url)}/threads/${eventId}`
export const makeThreadPath = (url: string, eventId?: string) => {
let path = `/spaces/${encodeRelay(url)}/threads`
if (eventId) {
path += "/" + eventId
}
return path
}
export const getPrimaryNavItem = ($page: Page) => $page.route?.id?.split("/")[1]