Commit 40bc267e by 罗翻

android v1.93

parent 06462cdb
......@@ -192,8 +192,7 @@ public class HxManager {
//注册环信消息监听
EMClient.getInstance().chatManager().addMessageListener(msgListener);
//注册一个监听连接状态的listener
//TODO 记得把环信单账号登录打开
// EMClient.getInstance().addConnectionListener(new MyConnectionListener());
EMClient.getInstance().addConnectionListener(new MyConnectionListener());
}
//实现ConnectionListener接口
......
......@@ -65,7 +65,8 @@ public class UserManager {
UserInfo userInfo = getUser();
if (userInfo != null) {
//有数据
return !TextUtils.isEmpty(userInfo.getAccountId()) && !TextUtils.isEmpty(userInfo.getAccountName());
return !TextUtils.isEmpty(userInfo.getAccountId()) && !TextUtils.isEmpty(userInfo.getAccountName())
&& userInfo.getRoles() != null;
}
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment