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

Function getTag

desktop/src/testing/e2eBridge.ts:4488–4489  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

4486 .map((ev) => {
4487 const tags = (ev.tags ?? []) as string[][];
4488 const getTag = (name: string) =>
4489 tags.find((t) => t[0] === name)?.[1] ?? null;
4490 const channelId = getTag("d") ?? "";
4491 const channelType = getTag("t") ?? "stream";
4492 const isPrivate = tags.some((t) => t[0] === "private");

Callers 5

handleGetChannelsFunction · 0.70
handleCreateChannelFunction · 0.70
handleOpenDmFunction · 0.70
handleGetChannelDetailsFunction · 0.70
handleUpdateChannelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected