From f5040450314c4b4ab23ab3b93ab93e0dcb2ebba8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Jan 2015 22:01:19 +0000 Subject: WhatsApp: - fix for the ping thread; - fix for message notifications git-svn-id: http://svn.miranda-ng.org/main/trunk@11932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp index c7ce6648c8..961c3ea544 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp @@ -778,7 +778,7 @@ void WAConnection::sendMessageReceived(FMessage* message) throw(WAException) << XATTR("xmlns", "urn:xmpp:receipts"); this->out->write(ProtocolTreeNode("message", receivedNode) - << XATTR("to", message->key->remote_jid) << XATTR("type", "chat") << XATTR("id", message->key->id)); + << XATTR("to", message->key->remote_jid) << XATTR("type", "text") << XATTR("id", message->key->id)); } ///////////////////////////////////////////////////////////////////////////////////////// @@ -798,11 +798,7 @@ void WAConnection::sendPaused(const std::string& to) throw(WAException) void WAConnection::sendPing() throw(WAException) { - std::string id = makeId("ping_"); - this->pending_server_requests[id] = new IqResultPingHandler(this); - - ProtocolTreeNode *pingNode = new ProtocolTreeNode("ping") << XATTR("xmlns", "w:p"); - this->out->write(ProtocolTreeNode("iq", pingNode) << XATTR("id", id) << XATTR("type", "get")); + this->out->write(ProtocolTreeNode("")); } void WAConnection::sendPong(const std::string& id) throw(WAException) -- cgit v1.2.3