diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2015-08-12 21:42:35 +0000 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2015-08-12 21:42:35 +0000 |
commit | 5943db664c4d379a83866bd4ff4b16df46d3732d (patch) | |
tree | 83e5868fc4df88f1fd843c176855163b389688c1 /protocols/WhatsApp/src | |
parent | fff85d59848d265184c80bd6276923b503df95f8 (diff) |
WhatsApp:
* Updated capabilities (patch by Cassio)
git-svn-id: http://svn.miranda-ng.org/main/trunk@14934 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src')
-rw-r--r-- | protocols/WhatsApp/src/WhatsAPI++/WALogin.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
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<unsigned char>& challengeData) void WALogin::sendFeatures()
{
- ProtocolTreeNode* child = new ProtocolTreeNode("receipt_acks");
std::vector<ProtocolTreeNode*>* children = new std::vector<ProtocolTreeNode*>();
- 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));
}
|