Commit 24875d08 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified unavailable presence.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1430 b35dd754-fafc-0310-a699-88a17e54d16e
parent 05077795
...@@ -231,7 +231,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager ...@@ -231,7 +231,7 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager
public void sendUnavailableFromSessions(JID recipientJID, JID userJID) { public void sendUnavailableFromSessions(JID recipientJID, JID userJID) {
if (userJID.getNode() != null && !"".equals(userJID.getNode())) { if (userJID.getNode() != null && !"".equals(userJID.getNode())) {
for (ClientSession session : sessionManager.getSessions(userJID.getNode())) { for (ClientSession session : sessionManager.getSessions(userJID.getNode())) {
Presence presencePacket = session.getPresence().createCopy(); Presence presencePacket = new Presence();
presencePacket.setType(Presence.Type.unavailable); presencePacket.setType(Presence.Type.unavailable);
presencePacket.setFrom(session.getAddress()); presencePacket.setFrom(session.getAddress());
presencePacket.setTo(recipientJID); presencePacket.setTo(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