* Mirror the relay's channel-window row set (buzz-db `thread.rs`, NIP-CW * §Top-level Classification): an event is a timeline row iff its depth is 0 * (no reply marker → `rootEventId === null`) OR its depth is 1 (its parent is * the thread root) AND it is broadcast. Depth ≥ 2 replies never surfac
(event: RelayEvent)
| 2823 | * depth-1 replies the real relay serves. |
| 2824 | */ |
| 2825 | function isMockTopLevelRow(event: RelayEvent): boolean { |
| 2826 | const { parentEventId, rootEventId } = getThreadReferenceFromTags(event.tags); |
| 2827 | if (rootEventId === null) { |
| 2828 | return true; |
| 2829 | } |
| 2830 | const isDepthOne = parentEventId !== null && parentEventId === rootEventId; |
| 2831 | return isDepthOne && isMockBroadcastReply(event.tags); |
| 2832 | } |
| 2833 | |
| 2834 | function appendMentionTags( |
| 2835 | tags: string[][], |
no test coverage detected