public Chat GetChat(long peerId) { if (!Chats.ContainsKey(peerId)) { Chats.Add(peerId, new Chat(this, peerId)); } return(Chats[peerId]); }