MCPcopy Create free account
hub / github.com/block/buzz / getThreadRootId

Function getThreadRootId

desktop/src/features/home/useInboxThreadContext.ts:26–29  ·  view source on GitHub ↗
(event: RelayEvent)

Source from the content-addressed store, hash-verified

24}
25
26function getThreadRootId(event: RelayEvent): string {
27 const thread = getThreadReference(event.tags);
28 return thread.rootId ?? thread.parentId ?? event.id;
29}
30
31export function useInboxThreadContext(
32 item: FeedItem | null,

Callers 1

useInboxThreadContextFunction · 0.85

Calls 1

getThreadReferenceFunction · 0.90

Tested by

no test coverage detected