Add a packet JID place I missed...
This commit is contained in:
parent
f108fc5a5c
commit
864f319500
|
@ -19,7 +19,7 @@ public class IqGenerator extends AbstractGenerator {
|
|||
public IqPacket discoResponse(IqPacket request) {
|
||||
IqPacket packet = new IqPacket(IqPacket.TYPE_RESULT);
|
||||
packet.setId(request.getId());
|
||||
packet.setAttribute("to", request.getFrom());
|
||||
packet.setTo(request.getFrom());
|
||||
Element query = packet.addChild("query",
|
||||
"http://jabber.org/protocol/disco#info");
|
||||
query.setAttribute("node", request.query().getAttribute("node"));
|
||||
|
|
Loading…
Reference in a new issue