modify chat/Chat.java @yangchen