change Chat -> ChatMessage and add MessageType