From 39df1614d2db392a012426b1cb8a928c19695a26 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Wed, 18 Dec 2024 14:53:29 +0000 Subject: [PATCH] only show one hop of fwd auth dag --- src/graph.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graph.ts b/src/graph.ts index d150267..6046f80 100644 --- a/src/graph.ts +++ b/src/graph.ts @@ -237,19 +237,19 @@ const redraw = (vis: HTMLDivElement, events: MatrixEvent[], opts: RenderOptions) if (opts.showAuthDAG) { // walk the DAG to the root to get authed & authing events - d.auth_list = []; const walk = (e) => { e.authed_list ||= []; e.authed_list.push(d.event_id); for (const id of e.prev_auth_events) { - d.auth_list.push(id); walk(eventsById.get(id)); } }; walk(d); } + d.auth_list = []; for (const id of authEvents) { + d.auth_list.push(id); const p = eventsById.get(id)!; if (!p.authLane) { const lane = getNextAuthLane(p.y, i);