sending named presence

This commit is contained in:
Daniel Gultsch 2014-03-09 03:24:59 +01:00
parent 6ec5b2f055
commit a8dd6794f3
1 changed files with 3 additions and 0 deletions

View File

@ -402,6 +402,9 @@ public class XmppConnection implements Runnable {
IqPacket iq = new IqPacket(IqPacket.TYPE_SET);
Element bind = new Element("bind");
bind.setAttribute("xmlns", "urn:ietf:params:xml:ns:xmpp-bind");
Element resource = new Element("resource");
resource.setContent("Conversations");
bind.addChild(resource);
iq.addChild(bind);
this.sendIqPacket(iq, new OnIqPacketReceived() {
@Override