diff options
author | George Hazan <george.hazan@gmail.com> | 2015-01-27 23:11:40 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-01-27 23:11:40 +0000 |
commit | 7690c901d9dd0e0992cdadebdeb817faa8358583 (patch) | |
tree | 19319b0d75c6ee8a2e614aba4fae6378deb06f1d | |
parent | e8b31dac690fdbe59bf9fb53632c87f832fefcf5 (diff) |
WhatsApp: correct read receipts
git-svn-id: http://svn.miranda-ng.org/main/trunk@11935 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/WAConnection.cpp | 7 | ||||
-rw-r--r-- | protocols/WhatsApp/src/version.h | 2 |
2 files changed, 3 insertions, 6 deletions
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)));
}
/////////////////////////////////////////////////////////////////////////////////////////
diff --git a/protocols/WhatsApp/src/version.h b/protocols/WhatsApp/src/version.h index 0331aa5330..6dc5649787 100644 --- a/protocols/WhatsApp/src/version.h +++ b/protocols/WhatsApp/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 1
#define __RELEASE_NUM 2
-#define __BUILD_NUM 2
+#define __BUILD_NUM 3
#include <stdver.h>
|