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

Function handleUnarchiveChannel

desktop/src/testing/e2eBridge.ts:5432–5452  ·  view source on GitHub ↗
(
  args: { channelId: string },
  config: E2eConfig | undefined,
)

Source from the content-addressed store, hash-verified

5430}
5431
5432async function handleUnarchiveChannel(
5433 args: { channelId: string },
5434 config: E2eConfig | undefined,
5435) {
5436 const identity = getIdentity(config);
5437 if (!identity) {
5438 const channel = getMockChannel(args.channelId);
5439 channel.archived_at = null;
5440 touchMockChannel(channel);
5441 return;
5442 }
5443
5444 await submitSignedEvent(config, {
5445 kind: 9002,
5446 content: "",
5447 tags: [
5448 ["h", args.channelId],
5449 ["archived", "false"],
5450 ],
5451 });
5452}
5453
5454async function handleDeleteChannel(
5455 args: { channelId: string },

Callers 1

handleMockCommandFunction · 0.85

Calls 4

getMockChannelFunction · 0.85
touchMockChannelFunction · 0.85
submitSignedEventFunction · 0.85
getIdentityFunction · 0.70

Tested by

no test coverage detected