Add ability to join a space

This commit is contained in:
Jon Staab
2024-08-16 12:42:00 -07:00
parent 4cba0d9345
commit 0eb65be427
14 changed files with 264 additions and 148 deletions
+6 -1
View File
@@ -9,9 +9,10 @@
import PrimaryNav from "@app/components/PrimaryNav.svelte"
import {modals, clearModal} from "@app/modal"
import {theme} from "@app/theme"
import {session, repository} from "@app/base"
import {pk, session, repository} from "@app/base"
import {relays, handles} from "@app/state"
import {initStorage} from "@app/storage"
import {loadUserData} from "@app/commands"
let ready: Promise<void>
let dialog: HTMLDialogElement
@@ -34,6 +35,10 @@
}
onMount(() => {
if ($pk) {
loadUserData($pk)
}
ready = initStorage({
events: {
keyPath: "id",