From 5943db664c4d379a83866bd4ff4b16df46d3732d Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Wed, 12 Aug 2015 21:42:35 +0000 Subject: WhatsApp: * Updated capabilities (patch by Cassio) git-svn-id: http://svn.miranda-ng.org/main/trunk@14934 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'protocols/WhatsApp/src') diff --git a/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp b/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp index fbca542320..5184dab86e 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp @@ -54,12 +54,18 @@ void WALogin::sendResponse(const std::vector& challengeData) void WALogin::sendFeatures() { - ProtocolTreeNode* child = new ProtocolTreeNode("receipt_acks"); std::vector* children = new std::vector(); - children->push_back(child); + ProtocolTreeNode* receiptsChild = new ProtocolTreeNode("readreceipts"); + children->push_back(receiptsChild); - ProtocolTreeNode* pictureChild = new ProtocolTreeNode("w:profile:picture") << XATTR("type", "all"); - children->push_back(pictureChild); + ProtocolTreeNode* groupsChild = new ProtocolTreeNode("groups_v2"); + children->push_back(groupsChild); + + ProtocolTreeNode* privacyChild = new ProtocolTreeNode("privacy"); + children->push_back(privacyChild); + + ProtocolTreeNode* presenceChild = new ProtocolTreeNode("presence"); + children->push_back(presenceChild); m_pConnection->out.write(ProtocolTreeNode("stream:features", NULL, children)); } -- cgit v1.2.3