Drop nrelay, fix space threads

This commit is contained in:
Jon Staab
2024-10-21 10:30:12 -07:00
parent af5e1e68cc
commit 5aee73fb6f
8 changed files with 24 additions and 19 deletions
+4 -1
View File
@@ -31,6 +31,7 @@ import {
asDecryptedEvent,
isSignedEvent,
hasValidSignature,
normalizeRelayUrl,
} from "@welshman/util"
import type {TrustedEvent, SignedEvent, PublishedList, List} from "@welshman/util"
import {Nip59} from "@welshman/signer"
@@ -473,7 +474,9 @@ export const userMembership = withGetter(
// Other utils
export const decodeNRelay = (nevent: string) => nip19.decode(nevent).data as string
export const encodeRelay = (url: string) => encodeURIComponent(normalizeRelayUrl(url))
export const decodeRelay = (url: string) => normalizeRelayUrl(decodeURIComponent(url))
export const displayReaction = (content: string) => {
if (content === "+") return "❤️"