aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authoriNPUTmice <daniel@gultsch.de>2014-10-03 19:24:10 +0200
committeriNPUTmice <daniel@gultsch.de>2014-10-03 19:24:10 +0200
commit18409946c638269d2c0b0b3f74d9f9f7258d7962 (patch)
tree7336af620a899072abf283514ba4c0a987c7d842 /src
parent131f2aad76a968814fe10c06a055d6526b30e70f (diff)
implemented ping (xep-0199) fixed #517
Diffstat (limited to 'src')
-rw-r--r--src/eu/siacs/conversations/parser/IqParser.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/parser/IqParser.java b/src/eu/siacs/conversations/parser/IqParser.java
index 592b77a4..3cf76f60 100644
--- a/src/eu/siacs/conversations/parser/IqParser.java
+++ b/src/eu/siacs/conversations/parser/IqParser.java
@@ -73,6 +73,9 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
IqPacket response = mXmppConnectionService.getIqGenerator()
.discoResponse(packet);
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 {
if ((packet.getType() == IqPacket.TYPE_GET)
|| (packet.getType() == IqPacket.TYPE_SET)) {