|
@@ -15,6 +15,7 @@ import com.cooleshow.chatmodule.R;
|
|
|
import com.cooleshow.chatmodule.api.IMApi;
|
|
|
import com.cooleshow.chatmodule.bean.IMGroupInfo;
|
|
|
import com.cooleshow.chatmodule.manager.IMCenter;
|
|
|
+import com.cooleshow.chatmodule.utils.helper.ChatHelper;
|
|
|
import com.cooleshow.usercenter.helper.UserHelper;
|
|
|
import com.tencent.imsdk.v2.V2TIMGroupChangeInfo;
|
|
|
import com.tencent.imsdk.v2.V2TIMGroupMemberChangeInfo;
|
|
@@ -69,6 +70,9 @@ public class TUIChatGroupActivityV2 extends TUIGroupChatActivity {
|
|
|
public void initChat(ChatInfo chatInfo) {
|
|
|
super.initChat(chatInfo);
|
|
|
conversationId = getIntent().getStringExtra(TUIConstants.TUIChat.CONVERSATION_ID);
|
|
|
+ if(TextUtils.isEmpty(conversationId)){
|
|
|
+ conversationId = ChatHelper.getInstance().getConversionId(chatInfo);
|
|
|
+ }
|
|
|
GroupInfo groupInfo = (GroupInfo) chatInfo;
|
|
|
groupId = groupInfo.getId();
|
|
|
currentImUserId = UserHelper.getImUserId();
|