sending named presence
This commit is contained in:
parent
6ec5b2f055
commit
a8dd6794f3
|
@ -402,6 +402,9 @@ public class XmppConnection implements Runnable {
|
||||||
IqPacket iq = new IqPacket(IqPacket.TYPE_SET);
|
IqPacket iq = new IqPacket(IqPacket.TYPE_SET);
|
||||||
Element bind = new Element("bind");
|
Element bind = new Element("bind");
|
||||||
bind.setAttribute("xmlns", "urn:ietf:params:xml:ns:xmpp-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);
|
iq.addChild(bind);
|
||||||
this.sendIqPacket(iq, new OnIqPacketReceived() {
|
this.sendIqPacket(iq, new OnIqPacketReceived() {
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue