nip77: only fetch ids after sync if there are ids to fetch.

This commit is contained in:
fiatjaf
2025-11-21 19:01:52 -03:00
parent d37f7e0e4d
commit fd8c271dc4

View File

@@ -161,7 +161,9 @@ func SyncEventsFromIDs(ctx context.Context, dir Direction) {
}
}
if len(batch) > 0 {
for evt := range dir.From.QueryEvents(nostr.Filter{IDs: batch}) {
dir.To.Publish(ctx, evt)
}
}
}