( channelId: string, limit: number, until?: number, )
| 50 | * broad {@link CHANNEL_EVENT_KINDS} set). |
| 51 | */ |
| 52 | export function buildChannelHistoryFilter( |
| 53 | channelId: string, |
| 54 | limit: number, |
| 55 | until?: number, |
| 56 | ): RelaySubscriptionFilter { |
| 57 | const filter: RelaySubscriptionFilter = { |
| 58 | kinds: [...CHANNEL_TIMELINE_CONTENT_KINDS], |
| 59 | "#h": [channelId], |
| 60 | limit, |
| 61 | }; |
| 62 | |
| 63 | if (until !== undefined) { |
| 64 | filter.until = until; |
| 65 | } |
| 66 | |
| 67 | return filter; |
| 68 | } |
| 69 | |
| 70 | /** |
| 71 | * Aux-backfill filter for one chunk of loaded message ids: pulls auxiliary |
no outgoing calls
no test coverage detected