Add switch_relays to nip 46 signer

This commit is contained in:
Jon Staab
2026-01-20 12:46:33 -08:00
parent 414854a392
commit 1c0204c17c
3 changed files with 54 additions and 29 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ const isValidTag = (tag: string[]) => {
export const readList = (event: DecryptedEvent): PublishedList => {
const getTags = (tags: string[][]) => (Array.isArray(tags) ? tags.filter(isValidTag) : [])
const privateTags = getTags(parseJson(event.plaintext?.content))
const privateTags = getTags(parseJson(event.plaintext?.content) || [])
const publicTags = getTags(event.tags)
return {event, kind: event.kind, publicTags, privateTags}