Commit 43d23543 by Future

发送消息是否包含自己逻辑调整

parent 2e7f2be7
......@@ -935,11 +935,7 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
ConversationExtParam conversationExt,
Map<Long, ImConversation> conversationMapGroupById,
Map<Long, List<ImConversationMembers>> conMembersMapGroupByConId, Boolean includeSender) {
if (!includeSender) {
// 排除发件人自己
toUserIdList = toUserIdList.stream().filter(userId -> !sender.getClientId().equals(userId)).collect(Collectors.toList());
}
toUserIdList = toUserIdList.stream().filter(userId -> !sender.getClientId().equals(userId)).collect(Collectors.toList());
Long appId = application.getId();
// 获取收件人信息
......@@ -955,9 +951,6 @@ public class ImMessageServiceImpl extends BaseServiceImpl<ImMessageMapper, ImMes
Set<Long> receiverImClientIds = receiverList.stream().map(ImClient::getId).collect(Collectors.toSet());
List<ImConversation> conversationList =
imConversationService.getConversationBySenderAndReceivers(senderImClientId, receiverImClientIds);
log.info("单人消息获取会话入参 {} {} 会话数量 {}", senderImClientId, JSON.toJSONString(receiverImClientIds), conversationList.size());
// 根据收件人imClientId对会话/会话成员进行分组
Set<Long> notExistConversationReceiverClientIds = new HashSet<>(receiverImClientIds);
......
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