Commit d6a1e788 authored by Dave Cridland's avatar Dave Cridland

OF-454 Reflect presence to originator

parent 3bd2679c
...@@ -675,6 +675,9 @@ public class SessionManager extends BasicModule implements ClusterEventListener/ ...@@ -675,6 +675,9 @@ public class SessionManager extends BasicModule implements ClusterEventListener/
* @param presence the presence. * @param presence the presence.
*/ */
public void broadcastPresenceToOtherResources(JID originatingResource, Presence presence) { public void broadcastPresenceToOtherResources(JID originatingResource, Presence presence) {
// RFC 6121 4.4.2 says we always send to the originating resource.
presence.setTo(originatingResource);
routingTable.routePacket(originatingResource, presence, false);
if (!SessionManager.isOtherResourcePresenceEnabled()) { if (!SessionManager.isOtherResourcePresenceEnabled()) {
return; return;
} }
......
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