From 7690c901d9dd0e0992cdadebdeb817faa8358583 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Jan 2015 23:11:40 +0000 Subject: WhatsApp: correct read receipts git-svn-id: http://svn.miranda-ng.org/main/trunk@11935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 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 a10fa28df5..c87f88b619 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp @@ -774,11 +774,8 @@ void WAConnection::sendMessageWithBody(FMessage* message) throw (WAException) void WAConnection::sendMessageReceived(FMessage* message) throw(WAException) { - ProtocolTreeNode *receivedNode = new ProtocolTreeNode("received") - << XATTR("xmlns", "urn:xmpp:receipts"); - - this->out->write(ProtocolTreeNode("message", receivedNode) - << XATTR("to", message->key->remote_jid) << XATTR("type", "text") << XATTR("id", message->key->id)); + this->out->write(ProtocolTreeNode("receipt") << XATTR("type", "read") + << XATTR("to", message->key->remote_jid) << XATTR("id", message->key->id) << XATTRI("t", (int)time(0))); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3