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 ba9dadc38..4752cd0d7 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -124,8 +124,7 @@ public class IMLoginManager extends BaseCacheManager { * 退出登录 */ public void logout() { - //添加融云连接状态监听 - RongcloudIMManager.removeIMStatusListener(); + //删除用户登录信息 deleteByKey(KEY_USER_INFO); //用户对象置空 diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java index 3a39d861d..1e8bb70d4 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java @@ -156,9 +156,6 @@ public class RongcloudIMManager { RongIM.setConnectionStatusListener(connectionStatusListener); } - public static void removeIMStatusListener() { - RongIM.setConnectionStatusListener(null); - } /** * 监听 IM 连接状态,可根据连接状态进行不同业务处理 diff --git a/live/src/main/res/layout/rc_conversationlist_item.xml b/live/src/main/res/layout/rc_conversationlist_item.xml index 0257ae7e1..7fc2a176c 100644 --- a/live/src/main/res/layout/rc_conversationlist_item.xml +++ b/live/src/main/res/layout/rc_conversationlist_item.xml @@ -87,10 +87,10 @@ + app:srcCompat="@drawable/rc_unread_count_bg_normal" />