private void Instance_MessageRecieved(ChatMsg msg, ref bool sendToOthers) { var message = ChatMessage.FromChatMsg(msg); ChatHistory.Add(message); MessageReceived?.Invoke(message, ref sendToOthers); }