a big bundle of conversions and other changes.

This commit is contained in:
fiatjaf
2025-04-15 17:13:57 -03:00
parent f493293be2
commit 2b5b646a62
92 changed files with 852 additions and 2136 deletions

View File

@@ -9,7 +9,7 @@ import (
"fiatjaf.com/nostr/nip59"
)
func GetDMRelays(ctx context.Context, pubkey string, pool *nostr.SimplePool, relaysToQuery []string) []string {
func GetDMRelays(ctx context.Context, pubkey string, pool *nostr.Pool, relaysToQuery []string) []string {
ie := pool.QuerySingle(ctx, relaysToQuery, nostr.Filter{
Authors: []string{pubkey},
Kinds: []int{nostr.KindDMRelayList},
@@ -35,7 +35,7 @@ func PublishMessage(
ctx context.Context,
content string,
tags nostr.Tags,
pool *nostr.SimplePool,
pool *nostr.Pool,
ourRelays []string,
theirRelays []string,
kr nostr.Keyer,
@@ -137,7 +137,7 @@ func PrepareMessage(
// ListenForMessages returns a channel with the rumors already decrypted and checked
func ListenForMessages(
ctx context.Context,
pool *nostr.SimplePool,
pool *nostr.Pool,
kr nostr.Keyer,
ourRelays []string,
since nostr.Timestamp,