docs: readme

This commit is contained in:
Dax Raad
2025-06-20 15:22:41 -04:00
parent 98734ff28c
commit 61160dc220
5 changed files with 48 additions and 24 deletions

View File

@@ -159,6 +159,14 @@ export namespace Session {
return share
}
export async function unshare(id: string) {
await Storage.remove("session/share/" + id)
await update(id, (draft) => {
draft.share = undefined
})
await Share.remove(id)
}
export async function update(id: string, editor: (session: Info) => void) {
const { sessions } = state()
const session = await get(id)