addToUserList(myPresenceInfo);
PresenceInfo[] presenceInfoList = pm.getAllUsers();
for (int i = 0; i < presenceInfoList.length; i++) {
PresenceInfo info = presenceInfoList[i];
if (info.getCallID() == null) {
// It's a virtual player, skip it.
continue;
}
synchronized (members) {
synchronized (invitedMembers) {
if (members.contains(info)) {
if (info.equals(myPresenceInfo) == false) {
addToUserList(info);
}
} else if (invitedMembers.contains(info)) {
if (info.equals(myPresenceInfo) == false) {
addToUserList(info);
}
}
}
}