Commit e5fc0ced by Future

会话列表过滤

parent 33473cca
...@@ -835,7 +835,13 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap ...@@ -835,7 +835,13 @@ public class ImConversationServiceImpl extends BaseServiceImpl<ImConversationMap
for (ConversationVo myconversationlistvo : myImConversationListAndMsgCount) { for (ConversationVo myconversationlistvo : myImConversationListAndMsgCount) {
// HashMap attributess = JsonUtils.json2Map(myconversationlistvo.getAttribute()); // HashMap attributess = JsonUtils.json2Map(myconversationlistvo.getAttribute());
myconversationlistvo.setAttributes(myconversationlistvo.getAttribute()); myconversationlistvo.setAttributes(myconversationlistvo.getAttribute());
if (ChatTypeEnum.SINGLE.getCode().equals(myconversationlistvo.getChatType())) {
String[] members = myconversationlistvo.getMembers().split(",");
if (members.length == 1) {
// 单聊会话members只有一个人,过滤不返回(im-client未查询到数据)
continue;
}
}
// 查询会话的最后一条消息 // 查询会话的最后一条消息
OfflineMsgDto lastMsg = imMessageService.getLastMsgByConversationId(myconversationlistvo.getId(), currentClient.getId()); OfflineMsgDto lastMsg = imMessageService.getLastMsgByConversationId(myconversationlistvo.getId(), currentClient.getId());
myconversationlistvo.setLastMsg(lastMsg); myconversationlistvo.setLastMsg(lastMsg);
......
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