MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / normalizeInvitationCode

Method normalizeInvitationCode

chat/components/RightPanel.js:250–253  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

248 if (data.length > 28) {
249 const truncated = `${data.substring(0, 12)}...${data.substring(data.length - 12)}`;
250 return truncated;
251 }
252 return data;
253 }
254
255 normalizeInvitationCode(code) {
256 if (!code) return '';

Calls

no outgoing calls

Tested by

no test coverage detected