Disable alerts on logout

This commit is contained in:
Jon Staab
2026-01-26 10:08:43 -08:00
parent 646b8f8736
commit 9b3a8258ce
8 changed files with 52 additions and 71 deletions
-17
View File
@@ -64,7 +64,6 @@ import {
tagEvent,
tagEventForReaction,
nip44EncryptToSelf,
dropSession,
tagEventForComment,
tagEventForQuote,
waitForThunkError,
@@ -73,7 +72,6 @@ import {
getThunkError,
} from "@welshman/app"
import {compressFile} from "@lib/html"
import {kv, db} from "@app/core/storage"
import type {SettingsValues} from "@app/core/state"
import {
SETTINGS,
@@ -115,21 +113,6 @@ export const prependParent = (parent: TrustedEvent | undefined, {content, tags}:
return {content, tags}
}
// Log out
export const logout = async () => {
const $pubkey = pubkey.get()
if ($pubkey) {
dropSession($pubkey)
}
localStorage.clear()
await kv.clear()
await db.clear()
}
// Synchronization
export const broadcastUserData = async (relays: string[]) => {