注册

为什么请求的会话列表总是多一行,且第一行是空的

还是我请求的有问题。
已邀请:
你看下
EaseConversationListFragment这个类中的
loadConversationList这个方法中,在代码层的
  List<Pair<Long, EMConversation>> sortList = new ArrayList<Pair<Long, EMConversation>>();
synchronized (conversations) {
for (EMConversation conversation : conversations.values()) {
if (conversation.getAllMessages().size() != 0) {
//if(conversation.getType() != EMConversationType.ChatRoom){
sortList.add(new Pair<Long, EMConversation>(conversation.getLastMessage().getMsgTime(), conversation));
//}
}
}
}
对空会话 做了过滤的。

要回复问题请先登录注册