fix:修复直播间来消息显示指导员的头像
This commit is contained in:
parent
50e5dbfeca
commit
ecca0ca854
@ -1799,10 +1799,15 @@ public class LiveRoomViewHolder extends AbsViewHolder implements View.OnClickLis
|
||||
@Override
|
||||
public void onSuccess(List<Conversation> conversations) {
|
||||
if (conversations != null && !conversations.isEmpty()) {
|
||||
Conversation conversation = conversations.get(0);
|
||||
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(conversation.getTargetId());
|
||||
if (userInfo != null) {
|
||||
ImgLoader.display(mContext, userInfo.getPortraitUri().toString(), msgUserIcon);
|
||||
for (Conversation conversation : conversations) {
|
||||
if(conversation.getUnreadMessageCount()!=0){
|
||||
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(conversation.getTargetId());
|
||||
if (userInfo != null) {
|
||||
ImgLoader.display(mContext, userInfo.getPortraitUri().toString(), msgUserIcon);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user