添加用戶刷新機制

This commit is contained in:
18401019693 2022-09-07 17:40:29 +08:00
parent 6c9ac9807f
commit 16bffa1f15

View File

@ -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")) ) {