Commit 4b5a7368 by Future

方法调整

parent 452b16ef
......@@ -277,8 +277,7 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
imMessageService.save(imMessage);
// 发送消息
sendEventMsgToMember(imConversation.getId(), imApplication.getId(), createClient.getClientId(),
client2.getId(), imMessage.getId(), imMessage.getMsgType(),
content, Boolean.FALSE, Boolean.TRUE);
client2.getId(), content, imMessage);
}
}
ImConversationCreateVo imConversationCreateVo = new ImConversationCreateVo();
......@@ -376,12 +375,10 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 遍历发送给已在群内的成员
for (ImConversationMembers conversationMember : membersList) {
sendEventMsgToMember(imClientToConversation.getConversationId(), imApplication.getId(), createClient.getClientId(),
conversationMember.getFkClientId(), imMessage.getId(), imMessage.getMsgType(),
content, Boolean.FALSE, Boolean.TRUE);
conversationMember.getFkClientId(), content, imMessage);
}
sendEventMsgToMember(imClientToConversation.getConversationId(), imApplication.getId(), createClient.getClientId(),
clientToConversation.getId(), imMessage.getId(), imMessage.getMsgType(),
content, Boolean.FALSE, Boolean.TRUE);
clientToConversation.getId(), content, imMessage);
}
// 将群成员数量减
......@@ -1217,8 +1214,8 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 遍历发送给已在群内的成员
for (String key : chatRoomMembers.keySet()) {
Long fkClientId = Long.valueOf(key.split(RedisUtils.SPLIT)[0]);
sendEventMsgToMember(param.getChatRoomId(), imApplication.getId(), imClientSender.getClientId(),fkClientId
content, imMessage);
sendEventMsgToMember(param.getChatRoomId(), imApplication.getId(), imClientSender.getClientId(),
fkClientId, content, imMessage);
}
imConversationMapper.addMemberCount(imApplication.getId(), param.getChatRoomId(), 1);
......@@ -1274,7 +1271,8 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
// 遍历发送给已在群内的成员
for (String key : chatRoomMembers.keySet()) {
Long fkClientId = Long.valueOf(key.split(RedisUtils.SPLIT)[0]);
sendEventMsgToMember(imApplication, fkClientId, imMessage, currentClient);
sendEventMsgToMember(param.getChatRoomId(), imApplication.getId(), currentClient.getClientId(),
fkClientId, null, imMessage);
}
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment