|
@@ -14,6 +14,7 @@ import com.cooleshow.base.common.WebApi;
|
|
|
import com.cooleshow.base.common.WebConstants;
|
|
|
import com.cooleshow.base.router.RouterPath;
|
|
|
import com.cooleshow.base.utils.LogUtils;
|
|
|
+import com.cooleshow.chatmodule.utils.helper.ChatHelper;
|
|
|
import com.cooleshow.student.helper.EventHelper;
|
|
|
import com.cooleshow.usercenter.constants.UserConstants;
|
|
|
import com.cooleshow.usercenter.helper.UserHelper;
|
|
@@ -66,12 +67,9 @@ public class JsInterfaceAccomPanyUtils extends Object {
|
|
|
} else if ("openConversationActivity".equals(api)) {
|
|
|
JSONObject contentBean = jsonObject.getJSONObject("content");
|
|
|
if (null != contentBean) {
|
|
|
- RongIM.getInstance().startPrivateChat(activity, contentBean.getString("userId"), contentBean.getString("name"));
|
|
|
- if (!TextUtils.isEmpty(contentBean.getString("img"))) {
|
|
|
- RongIM.getInstance().refreshUserInfoCache(new UserInfo(contentBean.getString("userId"),
|
|
|
- contentBean.getString("name"),
|
|
|
- Uri.parse(contentBean.getString("img"))));
|
|
|
- }
|
|
|
+ String userId = contentBean.optString("userId");
|
|
|
+ String name = contentBean.optString("name");
|
|
|
+ ChatHelper.getInstance().goChat(userId,name);
|
|
|
}
|
|
|
} else if ("videoUpdate".equals(api)) {
|
|
|
if (onListener != null) {
|