From 849e5ebaff8739adbf56d0fb853f74788f93ad51 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Mon, 15 Aug 2022 15:51:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=87=BA=E6=97=B6=E5=88=A0=E9=99=A4?= =?UTF-8?q?=E7=A7=81=E8=81=8A=E7=B1=BB=E5=9E=8B=E8=81=8A=E5=A4=A9=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=92=8C=E4=BC=9A=E8=AF=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/yunbao/common/manager/IMLoginManager.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java index 27c88697d..4f2dd9a64 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -18,6 +18,9 @@ import com.yunbao.common.utils.SpUtil; import org.greenrobot.eventbus.EventBus; +import io.rong.imkit.IMCenter; +import io.rong.imlib.model.Conversation; + /** * 登录者信息管理 */ @@ -183,8 +186,11 @@ public class IMLoginManager extends BaseCacheManager { //用户对象置空 userInfo = null; manager = null; + //删除私聊对话 + IMCenter.getInstance().clearConversations(null, Conversation.ConversationType.PRIVATE); RongcloudIMManager.logoutIM(); MessageIMManager.get(context).logout(); + } /**