mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-16 14:04:59 -05:00
implemented ping (xep-0199) fixed #517
This commit is contained in:
parent
131f2aad76
commit
18409946c6
@ -73,6 +73,9 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
|||||||
IqPacket response = mXmppConnectionService.getIqGenerator()
|
IqPacket response = mXmppConnectionService.getIqGenerator()
|
||||||
.discoResponse(packet);
|
.discoResponse(packet);
|
||||||
account.getXmppConnection().sendIqPacket(response, null);
|
account.getXmppConnection().sendIqPacket(response, null);
|
||||||
|
} else if (packet.hasChild("ping","urn:xmpp:ping")) {
|
||||||
|
IqPacket response = packet.generateRespone(IqPacket.TYPE_RESULT);
|
||||||
|
mXmppConnectionService.sendIqPacket(account, response, null);
|
||||||
} else {
|
} else {
|
||||||
if ((packet.getType() == IqPacket.TYPE_GET)
|
if ((packet.getType() == IqPacket.TYPE_GET)
|
||||||
|| (packet.getType() == IqPacket.TYPE_SET)) {
|
|| (packet.getType() == IqPacket.TYPE_SET)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user