edit logic of chat client

其实这些更新无关紧要（