TencentCloud / TIMSDK

Tencent Cloud Chat features a comprehensive suite of solutions including global access, one-to-one chat, group chat, message push, profile and relationship chain hosting, and account authentication.
https://trtc.io/products/chat
2.59k stars 2.76k forks source link

最新版本拿不到用户资料timMsg.getSenderProfile()得到的TIMUserProfile拿不到用户头像和名字 #100

Closed enlogy closed 5 years ago

enlogy commented 5 years ago

最新版本拿不到用户资料timMsg.getSenderProfile()得到的TIMUserProfile拿不到用户头像和名字

enlogy commented 5 years ago

final MessageInfo msg = getItem(position); final TIMMessage timMsg = msg.getTIMMessage(); TIMUserProfile senderProfile = timMsg.getSenderProfile(); // 测试 获取用户的头像 LogUtil.d("faceUrl: "+senderProfile.getFaceUrl()+" userName: "+senderProfile.getNickName()); //-------------

04-26 21:43:06.491 12074-12074/com.tencent.qcloud.tim.tuikit D/CJT: faceUrl: userName:

enlogy commented 5 years ago

ChatAdapter.java 的onBindViewHolder 里面 senderProfile拿不到用户信息

lynxzhang commented 5 years ago

这个问题已经正在优化了,下个版本会优化解决

lynxzhang commented 5 years ago

新版本已经优化