Commit 08a4d141 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Tried to clarify flow for local users when sending notifications.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9236 b35dd754-fafc-0310-a699-88a17e54d16e
parent 03762d5a
...@@ -337,9 +337,11 @@ public class PEPService implements PubSubService { ...@@ -337,9 +337,11 @@ public class PEPService implements PubSubService {
// presence information for the recipient, collect all of their full JIDs and // presence information for the recipient, collect all of their full JIDs and
// send the notification to each below. // send the notification to each below.
Set<JID> recipientFullJIDs = new HashSet<JID>(); Set<JID> recipientFullJIDs = new HashSet<JID>();
if (recipientJID.getResource() == null && XMPPServer.getInstance().isLocal(recipientJID)) { if (XMPPServer.getInstance().isLocal(recipientJID)) {
for (ClientSession clientSession : SessionManager.getInstance().getSessions(recipientJID.getNode())) { if (recipientJID.getResource() == null) {
recipientFullJIDs.add(clientSession.getAddress()); for (ClientSession clientSession : SessionManager.getInstance().getSessions(recipientJID.getNode())) {
recipientFullJIDs.add(clientSession.getAddress());
}
} }
} }
else { else {
......
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