(chatEntity: any, myId: bigint)
| 224 | ((chatEntity?.className === "PeerUser" || chatEntity?.className === "InputPeerUser") && |
| 225 | chatEntity?.userId?.toString?.() === myId.toString()) |
| 226 | ); |
| 227 | } |
| 228 | |
| 229 | function peerToTypedKey(peer: any): string | null { |
| 230 | if (!peer) return null; |
| 231 | if (peer.userId !== undefined && peer.userId !== null) { |
| 232 | return `user:${peer.userId.toString()}`; |
| 233 | } |
| 234 | if (peer.channelId !== undefined && peer.channelId !== null) { |
| 235 | return `channel:${peer.channelId.toString()}`; |
| 236 | } |
| 237 | if (peer.chatId !== undefined && peer.chatId !== null) { |
no outgoing calls
no test coverage detected