Add migration for nostrtalk

This commit is contained in:
Jon Staab
2024-10-22 17:29:43 -07:00
parent c5d6e4f2d5
commit 66556e5646
+8
View File
@@ -29,6 +29,9 @@
freshness,
storageAdapters,
tracker,
session,
signer,
dropSession,
} from "@welshman/app"
import * as lib from "@welshman/lib"
import * as util from "@welshman/util"
@@ -40,6 +43,11 @@
import {loadUserData} from "@app/commands"
import * as state from "@app/state"
// Migration: old nostrtalk instance used different sessions
if ($session && !$signer) {
dropSession($session.pubkey)
}
let ready: Promise<unknown> = Promise.resolve()
onMount(() => {