This commit is contained in:
18401019693
2022-07-27 10:12:41 +08:00
parent 69977483d2
commit 8216efaba6
5 changed files with 38 additions and 9 deletions

View File

@@ -138,10 +138,13 @@ public class ConversationIMListManager {
} else {
userNiceName = userBean.getUserNiceName();
}
UserInfo userInfo = new UserInfo(userId, userNiceName, Uri.parse(userBean.getAvatar()));
//使用空白字段存储自己服务器用户的所有的信息
userInfo.setExtra(GsonUtils.toJson(userBean));
RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo);
if (!TextUtils.isEmpty(userNiceName)&&!TextUtils.isEmpty(userBean.getAvatar())){
UserInfo userInfo = new UserInfo(userId, userNiceName, Uri.parse(userBean.getAvatar()));
//使用空白字段存储自己服务器用户的所有的信息
userInfo.setExtra(GsonUtils.toJson(userBean));
RongUserInfoManager.getInstance().refreshUserInfoCache(userInfo);
}
}
}

View File

@@ -31,7 +31,8 @@
<FrameLayout
android:id="@+id/container"
android:layout_width="match_parent"
android:layout_height="match_parent" />
android:layout_height="match_parent"
android:layout_marginBottom="71dp" />
<RelativeLayout
android:id="@+id/rt_main_tab"