Fix list loading in feeds hanging and pagination in feeds with since/until

This commit is contained in:
Jon Staab
2025-07-25 11:04:28 -07:00
parent 16ca2b53ac
commit dc9a873d92
16 changed files with 17 additions and 16 deletions
+3 -1
View File
@@ -267,6 +267,7 @@ export class FeedCompiler {
const eventsByAddress = new Map<string, TrustedEvent>()
await requestPage({
autoClose: true,
signal: this.options.signal,
context: this.options.context,
filters: getIdFilters(addresses),
@@ -302,9 +303,10 @@ export class FeedCompiler {
await Promise.all(
labelItems.map(({mappings, relays, ...filter}) =>
requestPage({
relays,
autoClose: true,
signal: this.options.signal,
context: this.options.context,
relays,
filters: [{kinds: [1985], ...filter}],
onEvent: (e: TrustedEvent) => events.push(e),
}),