Fix sync, rename kinds

This commit is contained in:
Jon Staab
2024-12-11 08:31:03 -08:00
parent 03c5103ee9
commit 6f75ef4ab9
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -178,7 +178,7 @@ export class Router {
Replies = (event: TrustedEvent) =>
this.FromRelays(this.getRelaysForPubkey(event.pubkey, RelayMode.Read))
Quote = (event: TrustedEvent, value: string, relays = []) => {
Quote = (event: TrustedEvent, value: string, relays: string[] = []) => {
const tag = event.tags.find(t => t[1] === value)
const scenarios = [
this.ForPubkey(event.pubkey),
+1 -1
View File
@@ -170,7 +170,7 @@ export const pullWithoutNegentropy = async ({relays, filters, onEvent}: PullWith
relays,
filters: filters.filter(f => lt(f.since, until)).map(assoc('until', until)),
closeOnEose: true,
onClose: () => {
onComplete: () => {
done = !anyResults
resolve()
},
+4 -4
View File
@@ -16,10 +16,8 @@ export const DELETE = 5
export const REPOST = 6
export const REACTION = 7
export const BADGE_AWARD = 8
export const CHAT_MESSAGE = 9
export const CHAT_REPLY = 10
export const GROUP_NOTE = 11
export const GROUP_REPLY = 12
export const MESSAGE = 9
export const THREAD = 11
export const SEAL = 13
export const DIRECT_MESSAGE = 14
export const GENERIC_REPOST = 16
@@ -34,6 +32,7 @@ export const OTS = 1040
export const WRAP = 1059
export const WRAP_NIP04 = 1060
export const FILE_METADATA = 1063
export const COMMENT = 1111
export const LIVE_CHAT_MESSAGE = 1311
export const GIT_PATCH = 1617
export const GIT_ISSUE = 1621
@@ -95,6 +94,7 @@ export const GROUP_DELETE_EVENT = 9005
export const GROUP_EDIT_STATUS = 9006
export const GROUP_CREATE = 9007
export const GROUP_JOIN = 9021
export const GROUP_LEAVE = 9022
export const ZAP_GOAL = 9041
export const ZAP_REQUEST = 9734
export const ZAP_RESPONSE = 9735