Commit 86250e68 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Set TO address in packet when doing broadcast.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8526 b35dd754-fafc-0310-a699-88a17e54d16e
parent 97a137b7
......@@ -899,6 +899,7 @@ public class SessionManager extends BasicModule {
public void userBroadcast(String username, Packet packet) throws PacketException {
// TODO broadcast to ALL sessions of the user and not only available
for (JID address : routingTable.getRoutes(new JID(username, serverName, null))) {
packet.setTo(address);
routingTable.routePacket(address, packet);
}
}
......
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