diff --git a/src/main/java/it/auties/whatsapp/socket/StreamHandler.java b/src/main/java/it/auties/whatsapp/socket/StreamHandler.java index ae846c12..10026658 100644 --- a/src/main/java/it/auties/whatsapp/socket/StreamHandler.java +++ b/src/main/java/it/auties/whatsapp/socket/StreamHandler.java @@ -1337,6 +1337,11 @@ private void onMediaConnection(Node node) { } private void digestIq(Node node) { + if (node.attributes().hasValue("xmlns", "urn:xmpp:ping")) { + socketHandler.sendQueryWithNoResponse("result", null); + return; + } + var container = node.findNode().orElse(null); if (container == null) { return;