kind 21000

This commit is contained in:
boufni95 2023-12-01 22:08:48 +01:00
parent 3d4bd4be63
commit 8f36ae003a

View file

@ -103,12 +103,12 @@ export default class Handler {
const sub = relay.sub([
{
since: Math.ceil(Date.now() / 1000),
kinds: [4],
kinds: [21000],
'#p': [appInfo.publicKey],
}
])
sub.on("event", async (e) => {
if (e.kind !== 4 || !e.pubkey) {
if (e.kind !== 21000 || !e.pubkey) {
return
}
//@ts-ignore
@ -135,7 +135,7 @@ export default class Handler {
toSign = {
content,
created_at: Math.floor(Date.now() / 1000),
kind: 4,
kind: 21000,
pubkey: appInfo.publicKey,
tags: [['p', data.pub]],
}