private BitChatNetwork FindBitChatNetwork(Connection connection, BinaryID channelName)
        {
            //find network by channel name
            lock (_chats)
            {
                foreach (KeyValuePair <BinaryID, BitChat> chat in _chats)
                {
                    BitChatNetwork network = chat.Value.Network;

                    if (network.Status == BitChatNetworkStatus.Online)
                    {
                        BinaryID computedChannelName = network.GetChannelName(connection.LocalPeerID, connection.RemotePeerID);

                        if (computedChannelName.Equals(channelName))
                        {
                            return(network);
                        }
                    }
                }
            }

            return(null);
        }