MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / normalizeIdToken

Function normalizeIdToken

dme/dme.ts:250–254  ·  view source on GitHub ↗
(idText: string)

Source from the content-addressed store, hash-verified

248
249function getPeerRawId(peer: any): string | null {
250 if (!peer) return null;
251 if (peer.userId !== undefined && peer.userId !== null) {
252 return peer.userId.toString();
253 }
254 if (peer.channelId !== undefined && peer.channelId !== null) {
255 return peer.channelId.toString();
256 }
257 if (peer.chatId !== undefined && peer.chatId !== null) {

Callers 2

getSendAsIdentitySetFunction · 0.85
isMyMessageByIdentityFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected