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