Commit e3dcbd2d authored by Armando Jagucki's avatar Armando Jagucki Committed by ajagucki

PEP: A couple minor edits needed for testing PEP over s2s connections.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/pep@8893 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4f273211
...@@ -336,9 +336,10 @@ public class PEPService implements PubSubService { ...@@ -336,9 +336,10 @@ public class PEPService implements PubSubService {
recipientFullJIDs.add(clientSession.getAddress()); recipientFullJIDs.add(clientSession.getAddress());
} }
} }
else { // TODO: Try to get presence info even if not local...
/*else {
recipientFullJIDs.add(recipientJID); recipientFullJIDs.add(recipientJID);
} }*/
if (recipientFullJIDs.isEmpty()) { if (recipientFullJIDs.isEmpty()) {
message.setTo(recipientJID); message.setTo(recipientJID);
......
...@@ -377,7 +377,9 @@ public class UserManager implements IQResultListener { ...@@ -377,7 +377,9 @@ public class UserManager implements IQResultListener {
for (Iterator it=child.elementIterator("identity"); it.hasNext();) { for (Iterator it=child.elementIterator("identity"); it.hasNext();) {
Element identity = (Element) it.next(); Element identity = (Element) it.next();
String accountType = identity.attributeValue("type"); String accountType = identity.attributeValue("type");
if ("registered".equals(accountType) || "admin".equals(accountType)) { // FIXME: Not all servers provide these identity types for their regged users.
// So for PEP testing purposes, let's just assume everyone is registered.
if (true /*"registered".equals(accountType) || "admin".equals(accountType)*/) {
isRegistered = Boolean.TRUE; isRegistered = Boolean.TRUE;
break; break;
} }
......
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 to comment