添加用戶刷新機制
This commit is contained in:
parent
6c9ac9807f
commit
16bffa1f15
@ -58,7 +58,7 @@ public class PDLiveCustomConversationProvider extends BaseConversationProvider {
|
|||||||
|
|
||||||
String targetId = uiConversation.mCore.getTargetId();
|
String targetId = uiConversation.mCore.getTargetId();
|
||||||
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(targetId);
|
UserInfo userInfo = RongUserInfoManager.getInstance().getUserInfo(targetId);
|
||||||
if ((userInfo != null && !TextUtils.isEmpty(userInfo.getExtra()))|| TextUtils.equals(userInfo.getName(), "指导员测试")) {
|
if ((userInfo != null && !TextUtils.isEmpty(userInfo.getExtra()))) {
|
||||||
IMLoginModel model = new Gson().fromJson(userInfo.getExtra(), IMLoginModel.class);
|
IMLoginModel model = new Gson().fromJson(userInfo.getExtra(), IMLoginModel.class);
|
||||||
//指导员对话逻辑
|
//指导员对话逻辑
|
||||||
if ((model != null && TextUtils.equals(model.getIsAdmin(), "1")) ) {
|
if ((model != null && TextUtils.equals(model.getIsAdmin(), "1")) ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user