Commit 8e9fe62b authored by Dave Cridland's avatar Dave Cridland

Merge pull request #197 from sco0ter/of454

Send initial presence to the generating resource.
parents 3df60941 cdacf5b2
...@@ -594,7 +594,12 @@ public class SessionManager extends BasicModule implements ClusterEventListener/ ...@@ -594,7 +594,12 @@ public class SessionManager extends BasicModule implements ClusterEventListener/
routingTable.addClientRoute(session.getAddress(), session); routingTable.addClientRoute(session.getAddress(), session);
// Broadcast presence between the user's resources // Broadcast presence between the user's resources
broadcastPresenceOfOtherResource(session); broadcastPresenceOfOtherResource(session);
broadcastPresenceToOtherResources(session.getAddress(), presence);
// RFC 6121 § 4.4.2.
// The user's server MUST also send the presence stanza to all of the user's available resources (including the resource that generated the presence notification in the first place).
Presence selfPresence = presence.createCopy();
selfPresence.setTo(session.getAddress());
routingTable.routePacket(session.getAddress(), selfPresence, false);
} }
} }
......
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