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

Function recordEntryInconsistency

keyserver/src/socket/session-utils.js:208–218  ·  view source on GitHub ↗
(
  viewer: Viewer,
  response: EntryInconsistencyClientResponse,
)

Source from the content-addressed store, hash-verified

206}
207
208async function recordEntryInconsistency(
209 viewer: Viewer,
210 response: EntryInconsistencyClientResponse,
211): Promise<void> {
212 const { type, ...rest } = response;
213 const reportCreationRequest = ({
214 ...rest,
215 type: reportTypes.ENTRY_INCONSISTENCY,
216 }: EntryInconsistencyReportCreationRequest);
217 await createReport(viewer, reportCreationRequest);
218}
219
220type SessionInitializationResult =
221 | { sessionContinued: false }

Callers 1

processClientResponsesFunction · 0.85

Calls 1

createReportFunction · 0.85

Tested by

no test coverage detected