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

Smaller implementation =D

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@10058 b35dd754-fafc-0310-a699-88a17e54d16e
parent a3681ccf
...@@ -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 (userJID.getDomain().equals(XMPPServer.getInstance().getServerInfo().getXMPPDomain()) && userManager.isRegisteredUser(userJID.getNode())) { if (XMPPServer.getInstance().isLocal(userJID) && 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