(eventId: string)
| 25 | const MAX_ROUTE_ANCESTOR_HOPS = 50; |
| 26 | |
| 27 | async function fetchRouteEvent(eventId: string): Promise<RelayEvent | null> { |
| 28 | try { |
| 29 | return await getEventById(eventId); |
| 30 | } catch (error) { |
| 31 | console.error("Failed to load route event", eventId, error); |
| 32 | return null; |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | function getReplyParentId(event: RelayEvent): string | null { |
| 37 | if (isBroadcastReply(event.tags)) { |
no test coverage detected