fix chat
parent
5a59ae0090
commit
eddd5459e0
|
@ -124,7 +124,7 @@ public class ChatLogic {
|
|||
if (!result) {
|
||||
String s = SensitivewordFilter.replaceSensitiveWord(message, 1, "*");
|
||||
// MessageUtil.sendErrorResponse(iSession, 0, msgId, "包含敏感字");
|
||||
ChatProto.ChatInfo chatInfo = CBean2Proto.getChatInfoBuilder(user,message,nowTime,-1);
|
||||
ChatProto.ChatInfo chatInfo = CBean2Proto.getChatInfoBuilder(user,s,nowTime,-1);
|
||||
ChatProto.SendChatInfoResponse response = ChatProto.SendChatInfoResponse.newBuilder().setChatInfo(chatInfo).build();
|
||||
MessageUtil.sendMessage(iSession,1,msgId,response,true);
|
||||
return ;
|
||||
|
|
Loading…
Reference in New Issue