MCPcopy Create free account
hub / github.com/dailydotdev/apps / getSupportChatId

Function getSupportChatId

packages/shared/src/features/messages/support.ts:14–17  ·  view source on GitHub ↗
(peerId?: string)

Source from the content-addressed store, hash-verified

12 `${SUPPORT_PEER_PREFIX}${chatId}`;
13
14export const getSupportChatId = (peerId?: string): string | undefined =>
15 peerId?.startsWith(SUPPORT_PEER_PREFIX)
16 ? peerId.slice(SUPPORT_PEER_PREFIX.length) || undefined
17 : undefined;
18
19export const isSupportPeerId = (peerId?: string): boolean =>
20 !!getSupportChatId(peerId);

Callers 6

support.spec.tsFile · 0.90
onAckFunction · 0.90
createXmppTransportFunction · 0.90
getMessagesUrlFunction · 0.90
dmPeerQueryOptionsFunction · 0.90
isSupportPeerIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected