Fixed up the function calls between Server and ChatMessage class