diff options
Diffstat (limited to 'protocols')
-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));
}
|