MCPcopy Create free account
hub / github.com/CommE2E/comm / createReplaceThreadOperation

Function createReplaceThreadOperation

lib/ops/create-replace-thread-operation.js:7–19  ·  view source on GitHub ↗
(
  id: string,
  threadInfo: RawThreadInfo,
)

Source from the content-addressed store, hash-verified

5import type { RawThreadInfo } from '../types/minimally-encoded-thread-permissions-types.js';
6
7function createReplaceThreadOperation(
8 id: string,
9 threadInfo: RawThreadInfo,
10): ReplaceThreadOperation {
11 return {
12 type: 'replace',
13 payload: {
14 id,
15 threadInfo,
16 isBackedUp: getDataIsBackedUpByThread(id, threadInfo),
17 },
18 };
19}
20
21export { createReplaceThreadOperation };

Calls 1

Tested by

no test coverage detected