|
@@ -1,5 +1,6 @@
|
|
|
package com.cooleshow.chatmodule.ui;
|
|
|
|
|
|
+import android.content.Context;
|
|
|
import android.graphics.Typeface;
|
|
|
import android.text.TextUtils;
|
|
|
import android.view.LayoutInflater;
|
|
@@ -20,8 +21,10 @@ import com.cooleshow.chatmodule.databinding.TcFragmentChatLayoutBinding;
|
|
|
import com.cooleshow.chatmodule.manager.IMCenter;
|
|
|
import com.cooleshow.chatmodule.utils.helper.ChatAvatarClickHelper;
|
|
|
import com.cooleshow.chatmodule.utils.helper.IMThemManager;
|
|
|
+import com.cooleshow.chatmodule.widget.CommonConfirmDialog2;
|
|
|
import com.google.android.material.tabs.TabLayout;
|
|
|
import com.google.android.material.tabs.TabLayoutMediator;
|
|
|
+import com.tencent.imsdk.BaseConstants;
|
|
|
import com.tencent.qcloud.tuikit.timcommon.bean.TUIMessageBean;
|
|
|
import com.tencent.qcloud.tuikit.timcommon.component.MessageProperties;
|
|
|
|
|
@@ -111,6 +114,17 @@ public class ChatFragment extends BaseFragment<TcFragmentChatLayoutBinding> impl
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public boolean onParseError(Context context, String module, int errCode, String errMsg) {
|
|
|
+ if(errCode == BaseConstants.ERR_SVR_MSG_IN_PEER_BLACKLIST){
|
|
|
+ //黑名单
|
|
|
+ CommonConfirmDialog2 commonConfirmDialog2 =new CommonConfirmDialog2(context);
|
|
|
+ commonConfirmDialog2.show();
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ return false;
|
|
|
+ }
|
|
|
});
|
|
|
}
|
|
|
|