Use inheritance for handling the different ChatItem types