Changed Chat message type from string to object