Commit a3681ccf authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

If session is not local (ie, is from component), we should not be attempting...

If session is not local (ie, is from component), we should not be attempting to send unavailable presences.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10057 b35dd754-fafc-0310-a699-88a17e54d16e
parent 252a7e70
...@@ -429,7 +429,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager ...@@ -429,7 +429,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager
} }
public void sendUnavailableFromSessions(JID recipientJID, JID userJID) { public void sendUnavailableFromSessions(JID recipientJID, JID userJID) {
if (userManager.isRegisteredUser(userJID.getNode())) { if (userJID.getDomain().equals(XMPPServer.getInstance().getServerInfo().getXMPPDomain()) && userManager.isRegisteredUser(userJID.getNode())) {
for (ClientSession session : sessionManager.getSessions(userJID.getNode())) { for (ClientSession session : sessionManager.getSessions(userJID.getNode())) {
// Do not send an unavailable presence if the user sent a direct available presence // Do not send an unavailable presence if the user sent a direct available presence
if (presenceUpdateHandler.hasDirectPresence(session.getAddress(), recipientJID)) { if (presenceUpdateHandler.hasDirectPresence(session.getAddress(), recipientJID)) {
......
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