upgrade
This commit is contained in:
@@ -18,7 +18,7 @@ public class DBUser {
|
||||
public String name = "";
|
||||
public String phone = "";
|
||||
public String status = "";
|
||||
public boolean isManager = false;
|
||||
public boolean isManager = true;
|
||||
public boolean isAddFlag = false;
|
||||
|
||||
public boolean isMute = false;
|
||||
@@ -37,7 +37,7 @@ public class DBUser {
|
||||
this.status = d.getString("sip_state");
|
||||
String weight = d.getString("weight");
|
||||
if (weight != null) {
|
||||
this.isManager = weight.equals("1");
|
||||
this.isManager = weight.equals("1") ? true : false;
|
||||
} else {
|
||||
this.isManager = false;
|
||||
}
|
||||
@@ -66,7 +66,7 @@ public class DBUser {
|
||||
u = new DBUser((JSONObject) o);
|
||||
allUser.add(u);
|
||||
mapUsers.put(u.phone, u);
|
||||
if (mySelf != null && u.phone == mySelf.phone) {
|
||||
if (mySelf != null && u.phone.equals(mySelf.phone)) {
|
||||
mySelf = u;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user